pub enum StaticNode {
    I64(i64),
    U64(u64),
    F64(f64),
    Bool(bool),
    Null,
}
Expand description

Static tape node

Variants§

§

I64(i64)

A signed 64 bit integer.

§

U64(u64)

An unsigned 64 bit integer.

§

F64(f64)

A floating point value

§

Bool(bool)

A boolean value

§

Null

The null value

Trait Implementations§

source§

impl Clone for StaticNode

source§

fn clone(&self) -> StaticNode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StaticNode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for StaticNode

source§

fn default() -> StaticNode

Returns the “default value” for a type. Read more
source§

impl Display for StaticNode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<()> for StaticNode

source§

fn from(_b: ()) -> StaticNode

Converts to this type from the input type.
source§

impl From<StaticNode> for Value

source§

fn from(s: StaticNode) -> Self

Converts to this type from the input type.
source§

impl<'value> From<StaticNode> for Value<'value>

source§

fn from(s: StaticNode) -> Self

Converts to this type from the input type.
source§

impl From<bool> for StaticNode

source§

fn from(b: bool) -> StaticNode

Converts to this type from the input type.
source§

impl From<f32> for StaticNode

source§

fn from(f: f32) -> StaticNode

Converts to this type from the input type.
source§

impl From<f64> for StaticNode

source§

fn from(f: f64) -> StaticNode

Converts to this type from the input type.
source§

impl From<i16> for StaticNode

source§

fn from(i: i16) -> StaticNode

Converts to this type from the input type.
source§

impl From<i32> for StaticNode

source§

fn from(i: i32) -> StaticNode

Converts to this type from the input type.
source§

impl From<i64> for StaticNode

source§

fn from(i: i64) -> StaticNode

Converts to this type from the input type.
source§

impl From<i8> for StaticNode

source§

fn from(i: i8) -> StaticNode

Converts to this type from the input type.
source§

impl From<u16> for StaticNode

source§

fn from(i: u16) -> StaticNode

Converts to this type from the input type.
source§

impl From<u32> for StaticNode

source§

fn from(i: u32) -> StaticNode

Converts to this type from the input type.
source§

impl From<u64> for StaticNode

source§

fn from(i: u64) -> StaticNode

Converts to this type from the input type.
source§

impl From<u8> for StaticNode

source§

fn from(i: u8) -> StaticNode

Converts to this type from the input type.
source§

impl From<usize> for StaticNode

source§

fn from(i: usize) -> StaticNode

Converts to this type from the input type.
source§

impl Index<&str> for StaticNode

§

type Output = ()

The returned type after indexing.
source§

fn index(&self, _index: &str) -> &<StaticNode as Index<&str>>::Output

Performs the indexing (container[index]) operation. Read more
source§

impl Index<usize> for StaticNode

§

type Output = ()

The returned type after indexing.
source§

fn index(&self, _index: usize) -> &<StaticNode as Index<usize>>::Output

Performs the indexing (container[index]) operation. Read more
source§

impl IndexMut<&str> for StaticNode

source§

fn index_mut( &mut self, _index: &str ) -> &mut <StaticNode as Index<&str>>::Output

Performs the mutable indexing (container[index]) operation. Read more
source§

impl IndexMut<usize> for StaticNode

source§

fn index_mut( &mut self, _index: usize ) -> &mut <StaticNode as Index<usize>>::Output

Performs the mutable indexing (container[index]) operation. Read more
source§

impl PartialEq<&str> for StaticNode

source§

fn eq(&self, other: &&str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<()> for StaticNode

source§

fn eq(&self, _other: &()) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<String> for StaticNode

source§

fn eq(&self, other: &String) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<bool> for StaticNode

source§

fn eq(&self, other: &bool) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<f32> for StaticNode

source§

fn eq(&self, other: &f32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<f64> for StaticNode

source§

fn eq(&self, other: &f64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i128> for StaticNode

source§

fn eq(&self, other: &i128) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i16> for StaticNode

source§

fn eq(&self, other: &i16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i32> for StaticNode

source§

fn eq(&self, other: &i32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i64> for StaticNode

source§

fn eq(&self, other: &i64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i8> for StaticNode

source§

fn eq(&self, other: &i8) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<str> for StaticNode

source§

fn eq(&self, other: &str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u128> for StaticNode

source§

fn eq(&self, other: &u128) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u16> for StaticNode

source§

fn eq(&self, other: &u16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u32> for StaticNode

source§

fn eq(&self, other: &u32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u64> for StaticNode

source§

fn eq(&self, other: &u64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u8> for StaticNode

source§

fn eq(&self, other: &u8) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<usize> for StaticNode

source§

fn eq(&self, other: &usize) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for StaticNode

source§

fn eq(&self, other: &StaticNode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Value for StaticNode

source§

fn is_null(&self) -> bool

returns true if the current value is null
source§

fn is_float(&self) -> bool

returns true if the current value a floatingpoint number
source§

fn is_integer(&self) -> bool

returns true if the current value a integer number
source§

fn is_number(&self) -> bool

returns true if the current value a number either float or integer
source§

fn is_bool(&self) -> bool

returns true if the current value a bool
source§

fn is_i128(&self) -> bool

returns true if the current value can be represented as a i128
source§

fn is_i64(&self) -> bool

returns true if the current value can be represented as a i64
source§

fn is_i32(&self) -> bool

returns true if the current value can be represented as a i32
source§

fn is_i16(&self) -> bool

returns true if the current value can be represented as a i16
source§

fn is_i8(&self) -> bool

returns true if the current value can be represented as a i8
source§

fn is_u128(&self) -> bool

returns true if the current value can be represented as a u128
source§

fn is_u64(&self) -> bool

returns true if the current value can be represented as a u64
source§

fn is_usize(&self) -> bool

returns true if the current value can be represented as a usize
source§

fn is_u32(&self) -> bool

returns true if the current value can be represented as a u32
source§

fn is_u16(&self) -> bool

returns true if the current value can be represented as a u16
source§

fn is_u8(&self) -> bool

returns true if the current value can be represented as a u8
source§

fn is_f64(&self) -> bool

returns true if the current value can be represented as a f64
source§

fn is_f64_castable(&self) -> bool

returns true if the current value can be cast into a f64
source§

fn is_f32(&self) -> bool

returns true if the current value can be represented as a f64
source§

fn is_str(&self) -> bool

returns true if the current value can be represented as a str
source§

fn is_char(&self) -> bool

returns true if the current value can be represented as a char
source§

fn is_array(&self) -> bool

returns true if the current value can be represented as an array
source§

fn is_object(&self) -> bool

returns true if the current value can be represented as an object
source§

fn is_custom(&self) -> bool

returns if a type is a custom type
source§

impl ValueAccess for StaticNode

§

type Target = StaticNode

The target for nested lookups
§

type Key = String

The type for Objects
§

type Array = Vec<StaticNode>

The array structure
§

type Object = HashMap<String, StaticNode>

The object structure
source§

fn value_type(&self) -> ValueType

Gets the type of the current value
source§

fn as_array(&self) -> Option<&<StaticNode as ValueAccess>::Array>

Tries to represent the value as an array and returns a refference to it
source§

fn as_object( &self ) -> Option<&HashMap<<StaticNode as ValueAccess>::Key, StaticNode>>

Tries to represent the value as an object and returns a refference to it
source§

fn as_bool(&self) -> Option<bool>

Tries to represent the value as a bool
source§

fn as_i64(&self) -> Option<i64>

Tries to represent the value as an i64
source§

fn as_u64(&self) -> Option<u64>

Tries to represent the value as an u64
source§

fn as_f64(&self) -> Option<f64>

Tries to represent the value as a f64
source§

fn cast_f64(&self) -> Option<f64>

Casts the current value to a f64 if possible, this will turn integer values into floats.
source§

fn as_str(&self) -> Option<&str>

Tries to represent the value as a &str
source§

fn try_as_bool(&self) -> Result<bool, TryTypeError>

Tries to represent the value as a bool Read more
source§

fn as_i128(&self) -> Option<i128>

Tries to represent the value as an i128
source§

fn try_as_i128(&self) -> Result<i128, TryTypeError>

Tries to represent the value as a i128 Read more
source§

fn try_as_i64(&self) -> Result<i64, TryTypeError>

Tries to represent the value as an i64 Read more
source§

fn as_i32(&self) -> Option<i32>

Tries to represent the value as an i32
source§

fn try_as_i32(&self) -> Result<i32, TryTypeError>

Tries to represent the value as an i32 Read more
source§

fn as_i16(&self) -> Option<i16>

Tries to represent the value as an i16
source§

fn try_as_i16(&self) -> Result<i16, TryTypeError>

Tries to represent the value as an i16 Read more
source§

fn as_i8(&self) -> Option<i8>

Tries to represent the value as an i8
source§

fn try_as_i8(&self) -> Result<i8, TryTypeError>

Tries to represent the value as an i8 Read more
source§

fn as_u128(&self) -> Option<u128>

Tries to represent the value as an u128
source§

fn try_as_u128(&self) -> Result<u128, TryTypeError>

Tries to represent the value as an u128 Read more
source§

fn try_as_u64(&self) -> Result<u64, TryTypeError>

Tries to represent the value as an u64 Read more
source§

fn as_usize(&self) -> Option<usize>

Tries to represent the value as an usize
source§

fn try_as_usize(&self) -> Result<usize, TryTypeError>

Tries to represent the value as an usize Read more
source§

fn as_u32(&self) -> Option<u32>

Tries to represent the value as an u32
source§

fn try_as_u32(&self) -> Result<u32, TryTypeError>

Tries to represent the value as an u32 Read more
source§

fn as_u16(&self) -> Option<u16>

Tries to represent the value as an u16
source§

fn try_as_u16(&self) -> Result<u16, TryTypeError>

Tries to represent the value as an u16 Read more
source§

fn as_u8(&self) -> Option<u8>

Tries to represent the value as an u8
source§

fn try_as_u8(&self) -> Result<u8, TryTypeError>

Tries to represent the value as an u8 Read more
source§

fn try_as_f64(&self) -> Result<f64, TryTypeError>

Tries to represent the value as a f64 Read more
source§

fn try_cast_f64(&self) -> Result<f64, TryTypeError>

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
source§

fn as_f32(&self) -> Option<f32>

Tries to represent the value as a f32
source§

fn try_as_f32(&self) -> Result<f32, TryTypeError>

Tries to represent the value as a f32 Read more
source§

fn try_as_str(&self) -> Result<&str, TryTypeError>

Tries to represent the value as a &str Read more
source§

fn as_char(&self) -> Option<char>

Tries to represent the value as a Char
source§

fn try_as_char(&self) -> Result<char, TryTypeError>

Tries to represent the value as a Char Read more
source§

fn try_as_array(&self) -> Result<&Self::Array, TryTypeError>

Tries to represent the value as an array and returns a refference to it Read more
source§

fn try_as_object(&self) -> Result<&Self::Object, TryTypeError>

Tries to represent the value as an object and returns a refference to it Read more
source§

fn get<Q>(&self, k: &Q) -> Option<&Self::Target>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Gets a ref to a value based on a key, returns None if the current Value isn’t an Object or doesn’t contain the key it was asked for.
source§

fn try_get<Q>(&self, k: &Q) -> Result<Option<&Self::Target>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Trys to get a value based on a key, returns a TryTypeError if the current Value isn’t an Object, returns None if the key isn’t in the object Read more
source§

fn contains_key<Q>(&self, k: &Q) -> boolwhere Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Checks if a Value contains a given key. This will return flase if Value isn’t an object
source§

fn get_idx(&self, i: usize) -> Option<&Self::Target>

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.
source§

fn try_get_idx(&self, i: usize) -> Result<Option<&Self::Target>, TryTypeError>

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
source§

fn get_bool<Q>(&self, k: &Q) -> Option<bool>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a bool
source§

fn try_get_bool<Q>(&self, k: &Q) -> Result<Option<bool>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a bool, returns an error if it isn’t bool Read more
source§

fn get_i128<Q>(&self, k: &Q) -> Option<i128>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a i128
source§

fn try_get_i128<Q>(&self, k: &Q) -> Result<Option<i128>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a i128, returns an error if it isn’t i128 Read more
source§

fn get_i64<Q>(&self, k: &Q) -> Option<i64>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a i64
source§

fn try_get_i64<Q>(&self, k: &Q) -> Result<Option<i64>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a i64, returns an error if it isn’t a i64 Read more
source§

fn get_i32<Q>(&self, k: &Q) -> Option<i32>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a i32
source§

fn try_get_i32<Q>(&self, k: &Q) -> Result<Option<i32>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a i32, returns an error if it isn’t a i32 Read more
source§

fn get_i16<Q>(&self, k: &Q) -> Option<i16>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a i16
source§

fn try_get_i16<Q>(&self, k: &Q) -> Result<Option<i16>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a i16, returns an error if it isn’t a i16 Read more
source§

fn get_i8<Q>(&self, k: &Q) -> Option<i8>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a i8
source§

fn try_get_i8<Q>(&self, k: &Q) -> Result<Option<i8>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a i8, returns an error if it isn’t a i8 Read more
source§

fn get_u128<Q>(&self, k: &Q) -> Option<u128>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a u128
source§

fn try_get_u128<Q>(&self, k: &Q) -> Result<Option<u128>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a u128, returns an error if it isn’t a u128 Read more
source§

fn get_u64<Q>(&self, k: &Q) -> Option<u64>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a u64
source§

fn try_get_u64<Q>(&self, k: &Q) -> Result<Option<u64>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a u64, returns an error if it isn’t a u64 Read more
source§

fn get_usize<Q>(&self, k: &Q) -> Option<usize>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a usize
source§

fn try_get_usize<Q>(&self, k: &Q) -> Result<Option<usize>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a usize, returns an error if it isn’t a usize Read more
source§

fn get_u32<Q>(&self, k: &Q) -> Option<u32>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a u32
source§

fn try_get_u32<Q>(&self, k: &Q) -> Result<Option<u32>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a u32, returns an error if it isn’t a u32 Read more
source§

fn get_u16<Q>(&self, k: &Q) -> Option<u16>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a u16
source§

fn try_get_u16<Q>(&self, k: &Q) -> Result<Option<u16>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a u16, returns an error if it isn’t a u16 Read more
source§

fn get_u8<Q>(&self, k: &Q) -> Option<u8>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a u8
source§

fn try_get_u8<Q>(&self, k: &Q) -> Result<Option<u8>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a u8, returns an error if it isn’t a u8 Read more
source§

fn get_f64<Q>(&self, k: &Q) -> Option<f64>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a f64
source§

fn try_get_f64<Q>(&self, k: &Q) -> Result<Option<f64>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a u8, returns an error if it isn’t a u8 Read more
source§

fn get_f32<Q>(&self, k: &Q) -> Option<f32>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a f32
source§

fn try_get_f32<Q>(&self, k: &Q) -> Result<Option<f32>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a f32, returns an error if it isn’t a f32 Read more
source§

fn get_str<Q>(&self, k: &Q) -> Option<&str>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a str
source§

fn try_get_str<Q>(&self, k: &Q) -> Result<Option<&str>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a str, returns an error if it isn’t a str Read more
source§

fn get_array<Q>(&self, k: &Q) -> Option<&<Self::Target as ValueAccess>::Array>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a array
source§

fn try_get_array<Q>( &self, k: &Q ) -> Result<Option<&<Self::Target as ValueAccess>::Array>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as an array, returns an error if it isn’t a array Read more
source§

fn get_object<Q>(&self, k: &Q) -> Option<&<Self::Target as ValueAccess>::Object>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as a object
source§

fn try_get_object<Q>( &self, k: &Q ) -> Result<Option<&<Self::Target as ValueAccess>::Object>, TryTypeError>where Self::Key: Borrow<Q> + Hash + Eq, Q: Hash + Eq + Ord + ?Sized,

Tries to get an element of an object as an object, returns an error if it isn’t an object Read more
source§

impl Copy for StaticNode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.