Enum simd_json::value::StaticNode
source · [−]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
sourceimpl Clone for StaticNode
impl Clone for StaticNode
sourcefn clone(&self) -> StaticNode
fn clone(&self) -> StaticNode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StaticNode
impl Debug for StaticNode
sourceimpl Default for StaticNode
impl Default for StaticNode
sourcefn default() -> StaticNode
fn default() -> StaticNode
Returns the “default value” for a type. Read more
sourceimpl Display for StaticNode
impl Display for StaticNode
sourceimpl From<()> for StaticNode
impl From<()> for StaticNode
sourcefn from(_b: ()) -> StaticNode
fn from(_b: ()) -> StaticNode
Converts to this type from the input type.
sourceimpl From<StaticNode> for Value
impl From<StaticNode> for Value
sourcefn from(s: StaticNode) -> Self
fn from(s: StaticNode) -> Self
Converts to this type from the input type.
sourceimpl<'value> From<StaticNode> for Value<'value>
impl<'value> From<StaticNode> for Value<'value>
sourcefn from(s: StaticNode) -> Self
fn from(s: StaticNode) -> Self
Converts to this type from the input type.
sourceimpl From<bool> for StaticNode
impl From<bool> for StaticNode
sourcefn from(b: bool) -> StaticNode
fn from(b: bool) -> StaticNode
Converts to this type from the input type.
sourceimpl From<f32> for StaticNode
impl From<f32> for StaticNode
sourcefn from(f: f32) -> StaticNode
fn from(f: f32) -> StaticNode
Converts to this type from the input type.
sourceimpl From<f64> for StaticNode
impl From<f64> for StaticNode
sourcefn from(f: f64) -> StaticNode
fn from(f: f64) -> StaticNode
Converts to this type from the input type.
sourceimpl From<i16> for StaticNode
impl From<i16> for StaticNode
sourcefn from(i: i16) -> StaticNode
fn from(i: i16) -> StaticNode
Converts to this type from the input type.
sourceimpl From<i32> for StaticNode
impl From<i32> for StaticNode
sourcefn from(i: i32) -> StaticNode
fn from(i: i32) -> StaticNode
Converts to this type from the input type.
sourceimpl From<i64> for StaticNode
impl From<i64> for StaticNode
sourcefn from(i: i64) -> StaticNode
fn from(i: i64) -> StaticNode
Converts to this type from the input type.
sourceimpl From<i8> for StaticNode
impl From<i8> for StaticNode
sourcefn from(i: i8) -> StaticNode
fn from(i: i8) -> StaticNode
Converts to this type from the input type.
sourceimpl From<u16> for StaticNode
impl From<u16> for StaticNode
sourcefn from(i: u16) -> StaticNode
fn from(i: u16) -> StaticNode
Converts to this type from the input type.
sourceimpl From<u32> for StaticNode
impl From<u32> for StaticNode
sourcefn from(i: u32) -> StaticNode
fn from(i: u32) -> StaticNode
Converts to this type from the input type.
sourceimpl From<u64> for StaticNode
impl From<u64> for StaticNode
sourcefn from(i: u64) -> StaticNode
fn from(i: u64) -> StaticNode
Converts to this type from the input type.
sourceimpl From<u8> for StaticNode
impl From<u8> for StaticNode
sourcefn from(i: u8) -> StaticNode
fn from(i: u8) -> StaticNode
Converts to this type from the input type.
sourceimpl From<usize> for StaticNode
impl From<usize> for StaticNode
sourcefn from(i: usize) -> StaticNode
fn from(i: usize) -> StaticNode
Converts to this type from the input type.
sourceimpl Index<&str> for StaticNode
impl Index<&str> for StaticNode
sourceimpl Index<usize> for StaticNode
impl Index<usize> for StaticNode
sourceimpl IndexMut<&str> for StaticNode
impl IndexMut<&str> for StaticNode
sourceimpl IndexMut<usize> for StaticNode
impl IndexMut<usize> for StaticNode
sourceimpl PartialEq<&str> for StaticNode
impl PartialEq<&str> for StaticNode
sourceimpl PartialEq<()> for StaticNode
impl PartialEq<()> for StaticNode
sourceimpl PartialEq<StaticNode> for StaticNode
impl PartialEq<StaticNode> for StaticNode
sourceimpl PartialEq<String> for StaticNode
impl PartialEq<String> for StaticNode
sourceimpl PartialEq<bool> for StaticNode
impl PartialEq<bool> for StaticNode
sourceimpl PartialEq<f32> for StaticNode
impl PartialEq<f32> for StaticNode
sourceimpl PartialEq<f64> for StaticNode
impl PartialEq<f64> for StaticNode
sourceimpl PartialEq<i128> for StaticNode
impl PartialEq<i128> for StaticNode
sourceimpl PartialEq<i16> for StaticNode
impl PartialEq<i16> for StaticNode
sourceimpl PartialEq<i32> for StaticNode
impl PartialEq<i32> for StaticNode
sourceimpl PartialEq<i64> for StaticNode
impl PartialEq<i64> for StaticNode
sourceimpl PartialEq<i8> for StaticNode
impl PartialEq<i8> for StaticNode
sourceimpl PartialEq<str> for StaticNode
impl PartialEq<str> for StaticNode
sourceimpl PartialEq<u128> for StaticNode
impl PartialEq<u128> for StaticNode
sourceimpl PartialEq<u16> for StaticNode
impl PartialEq<u16> for StaticNode
sourceimpl PartialEq<u32> for StaticNode
impl PartialEq<u32> for StaticNode
sourceimpl PartialEq<u64> for StaticNode
impl PartialEq<u64> for StaticNode
sourceimpl PartialEq<u8> for StaticNode
impl PartialEq<u8> for StaticNode
sourceimpl PartialEq<usize> for StaticNode
impl PartialEq<usize> for StaticNode
sourceimpl Value for StaticNode
impl Value for StaticNode
sourcefn is_integer(&self) -> bool
fn is_integer(&self) -> bool
returns true if the current value a integer number
sourcefn is_f64_castable(&self) -> bool
fn is_f64_castable(&self) -> bool
returns true if the current value can be cast into a f64
sourceimpl ValueAccess for StaticNode
impl ValueAccess for StaticNode
type Target = StaticNode
type Target = StaticNode
The target for nested lookups
type Array = Vec<StaticNode, Global>
type Array = Vec<StaticNode, Global>
The array structure
type Object = HashMap<String, StaticNode, RandomState>
type Object = HashMap<String, StaticNode, RandomState>
The object structure
sourcefn value_type(&self) -> ValueType
fn value_type(&self) -> ValueType
Gets the type of the current value
sourcefn as_array(&self) -> Option<&<StaticNode as ValueAccess>::Array>
fn as_array(&self) -> Option<&<StaticNode as ValueAccess>::Array>
Tries to represent the value as an array and returns a refference to it
sourcefn as_object(
&self
) -> Option<&HashMap<<StaticNode as ValueAccess>::Key, StaticNode, RandomState>>
fn as_object(
&self
) -> Option<&HashMap<<StaticNode as ValueAccess>::Key, StaticNode, RandomState>>
Tries to represent the value as an object and returns a refference to it
sourcefn cast_f64(&self) -> Option<f64>
fn cast_f64(&self) -> Option<f64>
Casts the current value to a f64 if possible, this will turn integer values into floats. Read more
sourcefn try_as_bool(&self) -> Result<bool, TryTypeError>
fn try_as_bool(&self) -> Result<bool, TryTypeError>
Tries to represent the value as a bool Read more
sourcefn try_as_i128(&self) -> Result<i128, TryTypeError>
fn try_as_i128(&self) -> Result<i128, TryTypeError>
Tries to represent the value as a i128 Read more
sourcefn try_as_i64(&self) -> Result<i64, TryTypeError>
fn try_as_i64(&self) -> Result<i64, TryTypeError>
Tries to represent the value as an i64 Read more
sourcefn try_as_i32(&self) -> Result<i32, TryTypeError>
fn try_as_i32(&self) -> Result<i32, TryTypeError>
Tries to represent the value as an i32 Read more
sourcefn try_as_i16(&self) -> Result<i16, TryTypeError>
fn try_as_i16(&self) -> Result<i16, TryTypeError>
Tries to represent the value as an i16 Read more
sourcefn try_as_i8(&self) -> Result<i8, TryTypeError>
fn try_as_i8(&self) -> Result<i8, TryTypeError>
Tries to represent the value as an i8 Read more
sourcefn try_as_u128(&self) -> Result<u128, TryTypeError>
fn try_as_u128(&self) -> Result<u128, TryTypeError>
Tries to represent the value as an u128 Read more
sourcefn try_as_u64(&self) -> Result<u64, TryTypeError>
fn try_as_u64(&self) -> Result<u64, TryTypeError>
Tries to represent the value as an u64 Read more
sourcefn try_as_usize(&self) -> Result<usize, TryTypeError>
fn try_as_usize(&self) -> Result<usize, TryTypeError>
Tries to represent the value as an usize Read more
sourcefn try_as_u32(&self) -> Result<u32, TryTypeError>
fn try_as_u32(&self) -> Result<u32, TryTypeError>
Tries to represent the value as an u32 Read more
sourcefn try_as_u16(&self) -> Result<u16, TryTypeError>
fn try_as_u16(&self) -> Result<u16, TryTypeError>
Tries to represent the value as an u16 Read more
sourcefn try_as_u8(&self) -> Result<u8, TryTypeError>
fn try_as_u8(&self) -> Result<u8, TryTypeError>
Tries to represent the value as an u8 Read more
sourcefn try_as_f64(&self) -> Result<f64, TryTypeError>
fn try_as_f64(&self) -> Result<f64, TryTypeError>
Tries to represent the value as a f64 Read more
sourcefn try_cast_f64(&self) -> Result<f64, TryTypeError>
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
sourcefn try_as_f32(&self) -> Result<f32, TryTypeError>
fn try_as_f32(&self) -> Result<f32, TryTypeError>
Tries to represent the value as a f32 Read more
sourcefn try_as_str(&self) -> Result<&str, TryTypeError>
fn try_as_str(&self) -> Result<&str, TryTypeError>
Tries to represent the value as a &str Read more
sourcefn try_as_char(&self) -> Result<char, TryTypeError>
fn try_as_char(&self) -> Result<char, TryTypeError>
Tries to represent the value as a Char Read more
sourcefn try_as_array(&self) -> Result<&Self::Array, TryTypeError>
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
sourcefn try_as_object(&self) -> Result<&Self::Object, TryTypeError>
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
sourcefn get<Q>(&self, k: &Q) -> Option<&Self::Target> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get<Q>(&self, k: &Q) -> Option<&Self::Target> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
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. Read more
sourcefn try_get<Q>(&self, k: &Q) -> Result<Option<&Self::Target>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get<Q>(&self, k: &Q) -> Result<Option<&Self::Target>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
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
sourcefn contains_key<Q>(&self, k: &Q) -> bool where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn contains_key<Q>(&self, k: &Q) -> bool where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Checks if a Value contains a given key. This will return flase if Value isn’t an object Read more
sourcefn get_idx(&self, i: usize) -> Option<&Self::Target>
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. Read more
sourcefn try_get_idx(&self, i: usize) -> Result<Option<&Self::Target>, TryTypeError>
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
sourcefn get_bool<Q>(&self, k: &Q) -> Option<bool> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get_bool<Q>(&self, k: &Q) -> Option<bool> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a bool
sourcefn try_get_bool<Q>(&self, k: &Q) -> Result<Option<bool>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get_bool<Q>(&self, k: &Q) -> Result<Option<bool>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a bool, returns an error if it isn’t bool Read more
sourcefn get_i128<Q>(&self, k: &Q) -> Option<i128> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get_i128<Q>(&self, k: &Q) -> Option<i128> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a i128
sourcefn try_get_i128<Q>(&self, k: &Q) -> Result<Option<i128>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get_i128<Q>(&self, k: &Q) -> Result<Option<i128>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a i128, returns an error if it isn’t i128 Read more
sourcefn get_i64<Q>(&self, k: &Q) -> Option<i64> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get_i64<Q>(&self, k: &Q) -> Option<i64> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a i64
sourcefn try_get_i64<Q>(&self, k: &Q) -> Result<Option<i64>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get_i64<Q>(&self, k: &Q) -> Result<Option<i64>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a i64, returns an error if it isn’t a i64 Read more
sourcefn get_i32<Q>(&self, k: &Q) -> Option<i32> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get_i32<Q>(&self, k: &Q) -> Option<i32> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a i32
sourcefn try_get_i32<Q>(&self, k: &Q) -> Result<Option<i32>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get_i32<Q>(&self, k: &Q) -> Result<Option<i32>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a i32, returns an error if it isn’t a i32 Read more
sourcefn get_i16<Q>(&self, k: &Q) -> Option<i16> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get_i16<Q>(&self, k: &Q) -> Option<i16> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a i16
sourcefn try_get_i16<Q>(&self, k: &Q) -> Result<Option<i16>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get_i16<Q>(&self, k: &Q) -> Result<Option<i16>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a i16, returns an error if it isn’t a i16 Read more
sourcefn get_i8<Q>(&self, k: &Q) -> Option<i8> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get_i8<Q>(&self, k: &Q) -> Option<i8> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a i8
sourcefn try_get_i8<Q>(&self, k: &Q) -> Result<Option<i8>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get_i8<Q>(&self, k: &Q) -> Result<Option<i8>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a i8, returns an error if it isn’t a i8 Read more
sourcefn get_u128<Q>(&self, k: &Q) -> Option<u128> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get_u128<Q>(&self, k: &Q) -> Option<u128> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a u128
sourcefn try_get_u128<Q>(&self, k: &Q) -> Result<Option<u128>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get_u128<Q>(&self, k: &Q) -> Result<Option<u128>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a u128, returns an error if it isn’t a u128 Read more
sourcefn get_u64<Q>(&self, k: &Q) -> Option<u64> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get_u64<Q>(&self, k: &Q) -> Option<u64> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a u64
sourcefn try_get_u64<Q>(&self, k: &Q) -> Result<Option<u64>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get_u64<Q>(&self, k: &Q) -> Result<Option<u64>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a u64, returns an error if it isn’t a u64 Read more
sourcefn get_usize<Q>(&self, k: &Q) -> Option<usize> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get_usize<Q>(&self, k: &Q) -> Option<usize> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a usize
sourcefn try_get_usize<Q>(&self, k: &Q) -> Result<Option<usize>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get_usize<Q>(&self, k: &Q) -> Result<Option<usize>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a usize, returns an error if it isn’t a usize Read more
sourcefn get_u32<Q>(&self, k: &Q) -> Option<u32> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get_u32<Q>(&self, k: &Q) -> Option<u32> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a u32
sourcefn try_get_u32<Q>(&self, k: &Q) -> Result<Option<u32>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get_u32<Q>(&self, k: &Q) -> Result<Option<u32>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a u32, returns an error if it isn’t a u32 Read more
sourcefn get_u16<Q>(&self, k: &Q) -> Option<u16> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get_u16<Q>(&self, k: &Q) -> Option<u16> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a u16
sourcefn try_get_u16<Q>(&self, k: &Q) -> Result<Option<u16>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get_u16<Q>(&self, k: &Q) -> Result<Option<u16>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a u16, returns an error if it isn’t a u16 Read more
sourcefn get_u8<Q>(&self, k: &Q) -> Option<u8> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get_u8<Q>(&self, k: &Q) -> Option<u8> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a u8
sourcefn try_get_u8<Q>(&self, k: &Q) -> Result<Option<u8>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get_u8<Q>(&self, k: &Q) -> Result<Option<u8>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a u8, returns an error if it isn’t a u8 Read more
sourcefn get_f64<Q>(&self, k: &Q) -> Option<f64> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get_f64<Q>(&self, k: &Q) -> Option<f64> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a f64
sourcefn try_get_f64<Q>(&self, k: &Q) -> Result<Option<f64>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get_f64<Q>(&self, k: &Q) -> Result<Option<f64>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a u8, returns an error if it isn’t a u8 Read more
sourcefn get_f32<Q>(&self, k: &Q) -> Option<f32> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get_f32<Q>(&self, k: &Q) -> Option<f32> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a f32
sourcefn try_get_f32<Q>(&self, k: &Q) -> Result<Option<f32>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get_f32<Q>(&self, k: &Q) -> Result<Option<f32>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a f32, returns an error if it isn’t a f32 Read more
sourcefn get_str<Q>(&self, k: &Q) -> Option<&str> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get_str<Q>(&self, k: &Q) -> Option<&str> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a str
sourcefn try_get_str<Q>(&self, k: &Q) -> Result<Option<&str>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get_str<Q>(&self, k: &Q) -> Result<Option<&str>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a str, returns an error if it isn’t a str Read more
sourcefn get_array<Q>(&self, k: &Q) -> Option<&<Self::Target as ValueAccess>::Array> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get_array<Q>(&self, k: &Q) -> Option<&<Self::Target as ValueAccess>::Array> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a array
sourcefn try_get_array<Q>(
&self,
k: &Q
) -> Result<Option<&<Self::Target as ValueAccess>::Array>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get_array<Q>(
&self,
k: &Q
) -> Result<Option<&<Self::Target as ValueAccess>::Array>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as an array, returns an error if it isn’t a array Read more
sourcefn get_object<Q>(&self, k: &Q) -> Option<&<Self::Target as ValueAccess>::Object> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn get_object<Q>(&self, k: &Q) -> Option<&<Self::Target as ValueAccess>::Object> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as a object
sourcefn try_get_object<Q>(
&self,
k: &Q
) -> Result<Option<&<Self::Target as ValueAccess>::Object>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
fn try_get_object<Q>(
&self,
k: &Q
) -> Result<Option<&<Self::Target as ValueAccess>::Object>, TryTypeError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
Tries to get an element of an object as an object, returns an error if it isn’t an object Read more
impl Copy for StaticNode
Auto Trait Implementations
impl RefUnwindSafe for StaticNode
impl Send for StaticNode
impl Sync for StaticNode
impl Unpin for StaticNode
impl UnwindSafe for StaticNode
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