pub enum Origin<'s> {
Borrowed {
parent: Option<&'s Partial<'s>>,
init_field_slot: InitFieldSlot<'s>,
},
HeapAllocated,
}
Expand description
Origin of the partial — did we allocate it? Or is it borrowed?
Variants§
Auto Trait Implementations§
impl<'s> Freeze for Origin<'s>
impl<'s> RefUnwindSafe for Origin<'s>
impl<'s> !Send for Origin<'s>
impl<'s> !Sync for Origin<'s>
impl<'s> Unpin for Origin<'s>
impl<'s> !UnwindSafe for Origin<'s>
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