pub enum Leaf<'a> {
Last,
Root,
Id(&'a Value),
}Expand description
Which leaf a context walk starts from: the TypeScript leafId argument.
Variants§
Last
undefined (or an empty id): the last entry.
Root
null: before the first entry, so the context is empty.
Id(&'a Value)
An entry id; an unknown id falls back to the last entry.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Leaf<'a>
impl<'a> Freeze for Leaf<'a>
impl<'a> Move for Leaf<'a>
impl<'a> RefUnwindSafe for Leaf<'a>
impl<'a> Send for Leaf<'a>
impl<'a> Sync for Leaf<'a>
impl<'a> Unpin for Leaf<'a>
impl<'a> UnsafeUnpin for Leaf<'a>
impl<'a> UnwindSafe for Leaf<'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