Enum simd_json::value::owned::Value

source ·
pub enum Value {
    Static(StaticNode),
    String(String),
    Array(Vec<Value>),
    Object(Box<Object>),
}
Expand description

Owned JSON-DOM Value, consider using the ValueTrait to access it’s content. This is slower then the BorrowedValue as a tradeoff for getting rid of lifetimes.

Variants

Static(StaticNode)

Static values

String(String)

string type

Array(Vec<Value>)

array type

Object(Box<Object>)

object type

Trait Implementations

Returns anull value
Returns an empty array with a given capacity
Returns an empty object with a given capacity
Returns an empty array
Returns an empty object
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
The error type that can be returned if some error occurs during deserialization. Read more
Require the Deserializer to figure out how to drive the visitor based on what data type is in the input. Read more
Hint that the Deserialize type is expecting an optional value. Read more
Hint that the Deserialize type is expecting a newtype struct with a particular name. Read more
Hint that the Deserialize type is expecting a struct with a particular name and fields. Read more
Hint that the Deserialize type is expecting an enum value with a particular name and possible variants. Read more
Hint that the Deserialize type is expecting a bool value.
Hint that the Deserialize type is expecting an i8 value.
Hint that the Deserialize type is expecting an i16 value.
Hint that the Deserialize type is expecting an i32 value.
Hint that the Deserialize type is expecting an i64 value.
Hint that the Deserialize type is expecting an i128 value. Read more
Hint that the Deserialize type is expecting a u8 value.
Hint that the Deserialize type is expecting a u16 value.
Hint that the Deserialize type is expecting a u32 value.
Hint that the Deserialize type is expecting a u64 value.
Hint that the Deserialize type is expecting an u128 value. Read more
Hint that the Deserialize type is expecting a f32 value.
Hint that the Deserialize type is expecting a f64 value.
Hint that the Deserialize type is expecting a char value.
Hint that the Deserialize type is expecting a string value and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
Hint that the Deserialize type is expecting a string value and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
Hint that the Deserialize type is expecting a byte array and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
Hint that the Deserialize type is expecting a byte array and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
Hint that the Deserialize type is expecting a unit value.
Hint that the Deserialize type is expecting a unit struct with a particular name. Read more
Hint that the Deserialize type is expecting a sequence of values.
Hint that the Deserialize type is expecting a sequence of values and knows how many values there are without looking at the serialized data. Read more
Hint that the Deserialize type is expecting a tuple struct with a particular name and number of fields. Read more
Hint that the Deserialize type is expecting a map of key-value pairs.
Hint that the Deserialize type is expecting the name of a struct field or the discriminant of an enum variant. Read more
Hint that the Deserialize type needs to deserialize a value whose type doesn’t matter because it is ignored. Read more
Determine whether Deserialize implementations should expect to deserialize their human-readable form. Read more
The error type that can be returned if some error occurs during deserialization. Read more
Require the Deserializer to figure out how to drive the visitor based on what data type is in the input. Read more
Hint that the Deserialize type is expecting an optional value. Read more
Hint that the Deserialize type is expecting an enum value with a particular name and possible variants. Read more
Hint that the Deserialize type is expecting a newtype struct with a particular name. Read more
Hint that the Deserialize type is expecting a struct with a particular name and fields. Read more
Hint that the Deserialize type is expecting a bool value.
Hint that the Deserialize type is expecting an i8 value.
Hint that the Deserialize type is expecting an i16 value.
Hint that the Deserialize type is expecting an i32 value.
Hint that the Deserialize type is expecting an i64 value.
Hint that the Deserialize type is expecting an i128 value. Read more
Hint that the Deserialize type is expecting a u8 value.
Hint that the Deserialize type is expecting a u16 value.
Hint that the Deserialize type is expecting a u32 value.
Hint that the Deserialize type is expecting a u64 value.
Hint that the Deserialize type is expecting an u128 value. Read more
Hint that the Deserialize type is expecting a f32 value.
Hint that the Deserialize type is expecting a f64 value.
Hint that the Deserialize type is expecting a char value.
Hint that the Deserialize type is expecting a string value and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
Hint that the Deserialize type is expecting a string value and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
Hint that the Deserialize type is expecting a byte array and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
Hint that the Deserialize type is expecting a byte array and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
Hint that the Deserialize type is expecting a unit value.
Hint that the Deserialize type is expecting a unit struct with a particular name. Read more
Hint that the Deserialize type is expecting a sequence of values.
Hint that the Deserialize type is expecting a sequence of values and knows how many values there are without looking at the serialized data. Read more
Hint that the Deserialize type is expecting a tuple struct with a particular name and number of fields. Read more
Hint that the Deserialize type is expecting a map of key-value pairs.
Hint that the Deserialize type is expecting the name of a struct field or the discriminant of an enum variant. Read more
Hint that the Deserialize type needs to deserialize a value whose type doesn’t matter because it is ignored. Read more
Determine whether Deserialize implementations should expect to deserialize their human-readable form. Read more
Formats the value using the given formatter. 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.
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.
Creates a value from an iterator. Read more
Creates a value from an iterator. Read more
The returned type after indexing.
Performs the indexing (container[index]) operation. Read more
The returned type after indexing.
Performs the indexing (container[index]) operation. Read more
Performs the mutable indexing (container[index]) operation. Read more
Performs the mutable indexing (container[index]) operation. Read more
The type of the deserializer being converted into.
Convert this value into a deserializer.
Tries to represent the value as an array and returns a mutable refference to it
Tries to represent the value as an object and returns a mutable refference to it
Pushes to this Value as an Array. Will return an AccessError::NotAnArray if called on a Value that isn’t an Array - otherwise will behave the same as Vec::push Read more
Tries to push to a Value if as an Array. This funciton will have no effect if Value is of a different type Read more
Pops from this Value as an Array. Will return an AccessError::NotAnArray if called on a Value that isn’t an Array - otherwise will behave the same as Vec::pop Read more
Tries to pop from a Value as an Array. if the Value is any other type None will always be returned Read more
Same as get_idx but returns a mutable ref instead
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. 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.
returns true if the current value is null
returns true if the current value a floatingpoint number
returns true if the current value a integer number
returns true if the current value a number either float or integer
returns true if the current value a bool
returns true if the current value can be represented as a i128
returns true if the current value can be represented as a i64
returns true if the current value can be represented as a i32
returns true if the current value can be represented as a i16
returns true if the current value can be represented as a i8
returns true if the current value can be represented as a u128
returns true if the current value can be represented as a u64
returns true if the current value can be represented as a usize
returns true if the current value can be represented as a u32
returns true if the current value can be represented as a u16
returns true if the current value can be represented as a u8
returns true if the current value can be represented as a f64
returns true if the current value can be cast into a f64
returns true if the current value can be represented as a f64
returns true if the current value can be represented as a str
returns true if the current value can be represented as a char
returns true if the current value can be represented as an array
returns true if the current value can be represented as an object
returns if a type is a custom type
The target for nested lookups
The type for Objects
The array structure
The object structure
Gets the type of the current value
Tries to represent the value as a bool
Tries to represent the value as an i64
Tries to represent the value as an i128
Tries to represent the value as an u64
Tries to represent the value as a f64
Casts the current value to a f64 if possible, this will turn integer values into floats. Read more
Tries to represent the value as a &str
Tries to represent the value as an array and returns a refference to it
Tries to represent the value as an object and returns a refference to it
Tries to represent the value as a bool Read more
Tries to represent the value as a i128 Read more
Tries to represent the value as an i64 Read more
Tries to represent the value as an i32
Tries to represent the value as an i32 Read more
Tries to represent the value as an i16
Tries to represent the value as an i16 Read more
Tries to represent the value as an i8
Tries to represent the value as an i8 Read more
Tries to represent the value as an u128
Tries to represent the value as an u128 Read more
Tries to represent the value as an u64 Read more
Tries to represent the value as an usize
Tries to represent the value as an usize Read more
Tries to represent the value as an u32
Tries to represent the value as an u32 Read more
Tries to represent the value as an u16
Tries to represent the value as an u16 Read more
Tries to represent the value as an u8
Tries to represent the value as an u8 Read more
Tries to represent the value as a f64 Read more
Tries to Casts the current value to a f64 if possible, this will turn integer values into floats and error if it isn’t possible Read more
Tries to represent the value as a f32
Tries to represent the value as a f32 Read more
Tries to represent the value as a &str Read more
Tries to represent the value as a Char
Tries to represent the value as a Char Read more
Tries to represent the value as an array and returns a refference to it Read more
Tries to represent the value as an object and returns a refference to it Read more
Gets a ref to a value based on n index, returns None if the current Value isn’t an Array or doesn’t contain the index it was asked for. Read more
Tries to get a value based on n index, returns a type error if the current value isn’t an Array, returns None if the index is out of bouds Read more
The type for Strings
Tries to turn the value into it’s string representation
Tries to turn the value into it’s array representation
Tries to turn the value into it’s object representation
Tries to turn the value into it’s string representation Read more
Tries to turn the value into it’s array representation Read more
Tries to turn the value into it’s object representation Read more
Encodes the value into it’s JSON representation as a string
Encodes the value into it’s JSON representation as a string (pretty printed)
Encodes the value into it’s JSON representation into a Writer Read more
Encodes the value into it’s JSON representation into a Writer, pretty printed Read more

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
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. 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.