pub enum UnitRef<'a> {
Static(&'a CodeUnit),
Dynamic(Rc<CodeUnit>),
}Expand description
A borrowed code unit: a unit of the CodeStore for the store’s
lifetime, or a counted reference to a unit the heap owns, which keeps it
alive while the loop runs it across a collection.
Variants§
Methods from Deref<Target = CodeUnit>§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Send for UnitRef<'a>
impl<'a> !Sync for UnitRef<'a>
impl<'a> Freeze for UnitRef<'a>
impl<'a> RefUnwindSafe for UnitRef<'a>
impl<'a> Unpin for UnitRef<'a>
impl<'a> UnsafeUnpin for UnitRef<'a>
impl<'a> UnwindSafe for UnitRef<'a>
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