pub enum Intermediate {
    None,
    Bool(bool),
    Number(Number),
    String(String),
    Array(Vec<Intermediate>),
    Map(Map),
}
Expand description

Intermediate data representation.

The format is similar to JSON. It can be serialized/deserialized using serde.

Variants

None

Bool(bool)

Number(Number)

String(String)

Array(Vec<Intermediate>)

Map(Map)

Implementations

Check if the value is None.

Get the value as a boolean (if possible).

Get the numeric value (if possible).

Get the value as a character (if possible).

Get the value as a string (if possible).

Get the value as an array (if possible).

Get the value as a map (if possible).

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

Deserialize an object instance.

Deserialize this value from the given Serde deserializer. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Serialize the object.

Serialize this value into the given Serde serializer. Read more

Update the object.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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)

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.