Function swipl::atom::get_atomable
source · pub fn get_atomable<F, R>(term: &Term<'_>, func: F) -> PrologResult<R>Expand description
Get an atomable out of a term.
This is very much like get_atom, but instead of retrieving the
atom, we retrieve the atom’s name as an &str, wrapped by an
Atomable. This means the atom reference count does not have to
be manipulated, and it should be slightly faster than first
getting the atom and then extracting its name.