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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more