Enum simd_json::StaticNode [−][src]
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
The null value
Trait Implementations
impl Clone for StaticNode
[src]
impl Clone for StaticNode
[src]pub fn clone(&self) -> StaticNode
[src]
pub fn clone(&self) -> StaticNode
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for StaticNode
[src]
impl Debug for StaticNode
[src]impl Default for StaticNode
[src]
impl Default for StaticNode
[src]#[must_use]pub fn default() -> StaticNode
[src]
#[must_use]pub fn default() -> StaticNode
[src]Returns the “default value” for a type. Read more
impl<'v> Display for StaticNode
[src]
impl<'v> Display for StaticNode
[src]impl From<()> for StaticNode
[src]
impl From<()> for StaticNode
[src]#[must_use]pub fn from(_b: ()) -> StaticNode
[src]
#[must_use]pub fn from(_b: ()) -> StaticNode
[src]Performs the conversion.
impl<'value> From<StaticNode> for Value<'value>
[src]
impl<'value> From<StaticNode> for Value<'value>
[src]#[must_use]fn from(s: StaticNode) -> Self
[src]
#[must_use]fn from(s: StaticNode) -> Self
[src]Performs the conversion.
impl From<StaticNode> for Value
[src]
impl From<StaticNode> for Value
[src]#[must_use]fn from(s: StaticNode) -> Self
[src]
#[must_use]fn from(s: StaticNode) -> Self
[src]Performs the conversion.
impl From<bool> for StaticNode
[src]
impl From<bool> for StaticNode
[src]#[must_use]pub fn from(b: bool) -> StaticNode
[src]
#[must_use]pub fn from(b: bool) -> StaticNode
[src]Performs the conversion.
impl From<f32> for StaticNode
[src]
impl From<f32> for StaticNode
[src]#[must_use]pub fn from(f: f32) -> StaticNode
[src]
#[must_use]pub fn from(f: f32) -> StaticNode
[src]Performs the conversion.
impl From<f64> for StaticNode
[src]
impl From<f64> for StaticNode
[src]#[must_use]pub fn from(f: f64) -> StaticNode
[src]
#[must_use]pub fn from(f: f64) -> StaticNode
[src]Performs the conversion.
impl From<i16> for StaticNode
[src]
impl From<i16> for StaticNode
[src]#[must_use]pub fn from(i: i16) -> StaticNode
[src]
#[must_use]pub fn from(i: i16) -> StaticNode
[src]Performs the conversion.
impl From<i32> for StaticNode
[src]
impl From<i32> for StaticNode
[src]#[must_use]pub fn from(i: i32) -> StaticNode
[src]
#[must_use]pub fn from(i: i32) -> StaticNode
[src]Performs the conversion.
impl From<i64> for StaticNode
[src]
impl From<i64> for StaticNode
[src]#[must_use]pub fn from(i: i64) -> StaticNode
[src]
#[must_use]pub fn from(i: i64) -> StaticNode
[src]Performs the conversion.
impl From<i8> for StaticNode
[src]
impl From<i8> for StaticNode
[src]#[must_use]pub fn from(i: i8) -> StaticNode
[src]
#[must_use]pub fn from(i: i8) -> StaticNode
[src]Performs the conversion.
impl From<u16> for StaticNode
[src]
impl From<u16> for StaticNode
[src]#[must_use]pub fn from(i: u16) -> StaticNode
[src]
#[must_use]pub fn from(i: u16) -> StaticNode
[src]Performs the conversion.
impl From<u32> for StaticNode
[src]
impl From<u32> for StaticNode
[src]#[must_use]pub fn from(i: u32) -> StaticNode
[src]
#[must_use]pub fn from(i: u32) -> StaticNode
[src]Performs the conversion.
impl From<u64> for StaticNode
[src]
impl From<u64> for StaticNode
[src]#[must_use]pub fn from(i: u64) -> StaticNode
[src]
#[must_use]pub fn from(i: u64) -> StaticNode
[src]Performs the conversion.
impl From<u8> for StaticNode
[src]
impl From<u8> for StaticNode
[src]#[must_use]pub fn from(i: u8) -> StaticNode
[src]
#[must_use]pub fn from(i: u8) -> StaticNode
[src]Performs the conversion.
impl From<usize> for StaticNode
[src]
impl From<usize> for StaticNode
[src]#[must_use]pub fn from(i: usize) -> StaticNode
[src]
#[must_use]pub fn from(i: usize) -> StaticNode
[src]Performs the conversion.
impl<'_> Index<&'_ str> for StaticNode
[src]
impl<'_> Index<&'_ str> for StaticNode
[src]impl Index<usize> for StaticNode
[src]
impl Index<usize> for StaticNode
[src]impl<'_> IndexMut<&'_ str> for StaticNode
[src]
impl<'_> IndexMut<&'_ str> for StaticNode
[src]impl IndexMut<usize> for StaticNode
[src]
impl IndexMut<usize> for StaticNode
[src]impl<'_> PartialEq<&'_ str> for StaticNode
[src]
impl<'_> PartialEq<&'_ str> for StaticNode
[src]impl PartialEq<()> for StaticNode
[src]
impl PartialEq<()> for StaticNode
[src]impl<'a> PartialEq<StaticNode> for StaticNode
[src]
impl<'a> PartialEq<StaticNode> for StaticNode
[src]impl PartialEq<String> for StaticNode
[src]
impl PartialEq<String> for StaticNode
[src]impl PartialEq<bool> for StaticNode
[src]
impl PartialEq<bool> for StaticNode
[src]impl PartialEq<f32> for StaticNode
[src]
impl PartialEq<f32> for StaticNode
[src]impl PartialEq<f64> for StaticNode
[src]
impl PartialEq<f64> for StaticNode
[src]impl PartialEq<i128> for StaticNode
[src]
impl PartialEq<i128> for StaticNode
[src]impl PartialEq<i16> for StaticNode
[src]
impl PartialEq<i16> for StaticNode
[src]impl PartialEq<i32> for StaticNode
[src]
impl PartialEq<i32> for StaticNode
[src]impl PartialEq<i64> for StaticNode
[src]
impl PartialEq<i64> for StaticNode
[src]impl PartialEq<i8> for StaticNode
[src]
impl PartialEq<i8> for StaticNode
[src]impl PartialEq<str> for StaticNode
[src]
impl PartialEq<str> for StaticNode
[src]impl PartialEq<u128> for StaticNode
[src]
impl PartialEq<u128> for StaticNode
[src]impl PartialEq<u16> for StaticNode
[src]
impl PartialEq<u16> for StaticNode
[src]impl PartialEq<u32> for StaticNode
[src]
impl PartialEq<u32> for StaticNode
[src]impl PartialEq<u64> for StaticNode
[src]
impl PartialEq<u64> for StaticNode
[src]impl PartialEq<u8> for StaticNode
[src]
impl PartialEq<u8> for StaticNode
[src]impl PartialEq<usize> for StaticNode
[src]
impl PartialEq<usize> for StaticNode
[src]impl Value for StaticNode
[src]
impl Value for StaticNode
[src]#[must_use]pub fn value_type(&self) -> ValueType
[src]
#[must_use]pub fn value_type(&self) -> ValueType
[src]Returns the type of the current Valye
#[must_use]fn is_integer(&self) -> bool
[src]
#[must_use]fn is_integer(&self) -> bool
[src]returns true if the current value a integer number
#[must_use]fn is_number(&self) -> bool
[src]
#[must_use]fn is_number(&self) -> bool
[src]returns true if the current value a number either float or integer
#[must_use]fn is_i128(&self) -> bool
[src]
#[must_use]fn is_i128(&self) -> bool
[src]returns true if the current value can be represented as a i128
#[must_use]fn is_i64(&self) -> bool
[src]
#[must_use]fn is_i64(&self) -> bool
[src]returns true if the current value can be represented as a i64
#[must_use]fn is_i32(&self) -> bool
[src]
#[must_use]fn is_i32(&self) -> bool
[src]returns true if the current value can be represented as a i32
#[must_use]fn is_i16(&self) -> bool
[src]
#[must_use]fn is_i16(&self) -> bool
[src]returns true if the current value can be represented as a i16
#[must_use]fn is_u128(&self) -> bool
[src]
#[must_use]fn is_u128(&self) -> bool
[src]returns true if the current value can be represented as a u128
#[must_use]fn is_u64(&self) -> bool
[src]
#[must_use]fn is_u64(&self) -> bool
[src]returns true if the current value can be represented as a u64
#[must_use]fn is_usize(&self) -> bool
[src]
#[must_use]fn is_usize(&self) -> bool
[src]returns true if the current value can be represented as a usize
#[must_use]fn is_u32(&self) -> bool
[src]
#[must_use]fn is_u32(&self) -> bool
[src]returns true if the current value can be represented as a u32
#[must_use]fn is_u16(&self) -> bool
[src]
#[must_use]fn is_u16(&self) -> bool
[src]returns true if the current value can be represented as a u16
#[must_use]fn is_f64(&self) -> bool
[src]
#[must_use]fn is_f64(&self) -> bool
[src]returns true if the current value can be represented as a f64
#[must_use]fn is_f64_castable(&self) -> bool
[src]
#[must_use]fn is_f64_castable(&self) -> bool
[src]returns true if the current value can be cast into a f64
#[must_use]fn is_f32(&self) -> bool
[src]
#[must_use]fn is_f32(&self) -> bool
[src]returns true if the current value can be represented as a f64
#[must_use]fn is_str(&self) -> bool
[src]
#[must_use]fn is_str(&self) -> bool
[src]returns true if the current value can be represented as a str
impl ValueAccess for StaticNode
[src]
impl ValueAccess for StaticNode
[src]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
#[must_use]pub fn as_array(&self) -> Option<&<StaticNode as ValueAccess>::Array>
[src]
#[must_use]pub fn as_array(&self) -> Option<&<StaticNode as ValueAccess>::Array>
[src]Tries to represent the value as an array and returns a refference to it
#[must_use]pub fn as_object(
&self
) -> Option<&HashMap<<StaticNode as ValueAccess>::Key, StaticNode, RandomState>>
[src]
#[must_use]pub fn as_object(
&self
) -> Option<&HashMap<<StaticNode as ValueAccess>::Key, StaticNode, RandomState>>
[src]Tries to represent the value as an object and returns a refference to it
#[must_use]pub fn cast_f64(&self) -> Option<f64>
[src]
#[must_use]pub fn cast_f64(&self) -> Option<f64>
[src]Casts the current value to a f64 if possible, this will turn integer values into floats. Read more
#[must_use]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,
[src]
#[must_use]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,
[src]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
#[must_use]fn contains_key<Q>(&self, k: &Q) -> bool where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
[src]
#[must_use]fn contains_key<Q>(&self, k: &Q) -> bool where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
[src]Checks if a Value contains a given key. This will return flase if Value isn’t an object Read more
#[must_use]fn get_idx(&self, i: usize) -> Option<&Self::Target>
[src]
#[must_use]fn get_idx(&self, i: usize) -> Option<&Self::Target>
[src]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
#[must_use]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,
[src]
#[must_use]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,
[src]Tries to get an element of an object as a bool
#[must_use]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,
[src]
#[must_use]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,
[src]Tries to get an element of an object as a i128
#[must_use]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,
[src]
#[must_use]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,
[src]Tries to get an element of an object as a i64
#[must_use]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,
[src]
#[must_use]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,
[src]Tries to get an element of an object as a i32
#[must_use]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,
[src]
#[must_use]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,
[src]Tries to get an element of an object as a i16
#[must_use]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,
[src]
#[must_use]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,
[src]Tries to get an element of an object as a i8
#[must_use]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,
[src]
#[must_use]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,
[src]Tries to get an element of an object as a u128
#[must_use]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,
[src]
#[must_use]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,
[src]Tries to get an element of an object as a u64
#[must_use]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,
[src]
#[must_use]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,
[src]Tries to get an element of an object as a usize
#[must_use]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,
[src]
#[must_use]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,
[src]Tries to get an element of an object as a u32
#[must_use]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,
[src]
#[must_use]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,
[src]Tries to get an element of an object as a u16
#[must_use]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,
[src]
#[must_use]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,
[src]Tries to get an element of an object as a u8
#[must_use]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,
[src]
#[must_use]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,
[src]Tries to get an element of an object as a f64
#[must_use]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,
[src]
#[must_use]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,
[src]Tries to get an element of an object as a f32
#[must_use]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,
[src]
#[must_use]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,
[src]Tries to get an element of an object as a str
impl Copy for StaticNode
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more