Enum simd_json::value::tape::Node[][src]

pub enum Node<'input> {
    String(&'input str),
    Object(usizeusize),
    Array(usizeusize),
    Static(StaticNode),
}
Expand description

Tape Node

Variants

String(&'input str)

A string, located inside the input slice

Tuple Fields of String

0: &'input str
Object(usizeusize)

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.

Tuple Fields of Object

0: usize1: usize
Array(usizeusize)

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.

Tuple Fields of Array

0: usize1: usize
Static(StaticNode)

A static value that is interned into the tape, it can be directly taken and isn’t nested.

Tuple Fields of Static

0: StaticNode

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.