pub struct LazyAtom { /* private fields */ }
Expand description
A struct which provides a way to delay and cache atom creation.
This struct wraps a static string and uses it to construct a swipl
atom on the first invocation of as_atom
. Subsequent invocations
will reuse the earlier constructed atom.
The purpose of this struct is to back the implementation of the
atom!
macro, but it’s also usable on its own.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for LazyAtom
impl Send for LazyAtom
impl Sync for LazyAtom
impl Unpin for LazyAtom
impl UnwindSafe for LazyAtom
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more