pub enum Node<'input> {
String(&'input str),
Object(usize, usize),
Array(usize, usize),
Static(StaticNode),
}
Expand description
Tape Node
Variants
String(&'input str)
A string, located inside the input slice
Object(usize, usize)
An Object
with the given size
starts here.
the following values are keys and values, alternating
however values can be nested and have a length themselves.
Array(usize, usize)
An array with a given size starts here. The next size
elements belong to it - values can be nested and have a
size
of their own.
Static(StaticNode)
A static value that is interned into the tape, it can be directly taken and isn’t nested.
Trait Implementations
impl<'input> Copy for Node<'input>
impl<'input> StructuralPartialEq for Node<'input>
Auto Trait Implementations
impl<'input> RefUnwindSafe for Node<'input>
impl<'input> Send for Node<'input>
impl<'input> Sync for Node<'input>
impl<'input> Unpin for Node<'input>
impl<'input> UnwindSafe for Node<'input>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more