Enum simd_json::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<'v> Display for StaticNode
impl<'v> 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<'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<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 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<'a> PartialEq<StaticNode> for StaticNode
impl<'a> 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 value_type(&self) -> ValueType
fn value_type(&self) -> ValueType
Returns the type of the current Valye
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more