pub enum AtomKeep {
Weak,
Held,
Pinned,
}Expand description
What keeps an atom alive besides its holders.
Variants§
Weak
Nothing: it lives while a value, shape or unit names it.
Held
On Heap::held_atoms, until its compilation ends
(super::AtomMode::Hold).
Pinned
The heap’s lifetime (super::AtomMode::Pin).
Trait Implementations§
impl Copy for AtomKeep
impl Eq for AtomKeep
impl StructuralPartialEq for AtomKeep
Auto Trait Implementations§
impl Freeze for AtomKeep
impl RefUnwindSafe for AtomKeep
impl Send for AtomKeep
impl Sync for AtomKeep
impl Unpin for AtomKeep
impl UnsafeUnpin for AtomKeep
impl UnwindSafe for AtomKeep
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