Enum value_trait::StaticNode [−][src]
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]
fn clone(&self) -> StaticNode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StaticNode
[src]
impl Debug for StaticNode
[src]
impl Default for StaticNode
[src]
impl<'v> Display for StaticNode
[src]
impl From<()> for StaticNode
[src]
impl From<bool> for StaticNode
[src]
impl From<f32> for StaticNode
[src]
impl From<f64> for StaticNode
[src]
impl From<i16> for StaticNode
[src]
impl From<i32> for StaticNode
[src]
impl From<i64> for StaticNode
[src]
impl From<i8> for StaticNode
[src]
impl From<u16> for StaticNode
[src]
impl From<u32> for StaticNode
[src]
impl From<u64> for StaticNode
[src]
impl From<u8> for StaticNode
[src]
impl From<usize> for StaticNode
[src]
impl Index<&'_ str> for StaticNode
[src]
type Output = ()
The returned type after indexing.
#[must_use]fn index(&self, _index: &str) -> &Self::Output
[src]
impl Index<usize> for StaticNode
[src]
type Output = ()
The returned type after indexing.
#[must_use]fn index(&self, _index: usize) -> &Self::Output
[src]
impl IndexMut<&'_ str> for StaticNode
[src]
impl IndexMut<usize> for StaticNode
[src]
impl PartialEq<&'_ str> for StaticNode
[src]
#[must_use]fn eq(&self, other: &&str) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<()> for StaticNode
[src]
#[must_use]fn eq(&self, _other: &()) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<StaticNode> for StaticNode
[src]
#[must_use]fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<String> for StaticNode
[src]
#[must_use]fn eq(&self, other: &String) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<bool> for StaticNode
[src]
#[must_use]fn eq(&self, other: &bool) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<f32> for StaticNode
[src]
#[must_use]fn eq(&self, other: &f32) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<f64> for StaticNode
[src]
#[must_use]fn eq(&self, other: &f64) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<i128> for StaticNode
[src]
#[must_use]fn eq(&self, other: &i128) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<i16> for StaticNode
[src]
#[must_use]fn eq(&self, other: &i16) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<i32> for StaticNode
[src]
#[must_use]fn eq(&self, other: &i32) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<i64> for StaticNode
[src]
#[must_use]fn eq(&self, other: &i64) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<i8> for StaticNode
[src]
#[must_use]fn eq(&self, other: &i8) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<str> for StaticNode
[src]
#[must_use]fn eq(&self, other: &str) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<u128> for StaticNode
[src]
#[must_use]fn eq(&self, other: &u128) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<u16> for StaticNode
[src]
#[must_use]fn eq(&self, other: &u16) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<u32> for StaticNode
[src]
#[must_use]fn eq(&self, other: &u32) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<u64> for StaticNode
[src]
#[must_use]fn eq(&self, other: &u64) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<u8> for StaticNode
[src]
#[must_use]fn eq(&self, other: &u8) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<usize> for StaticNode
[src]
#[must_use]fn eq(&self, other: &usize) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Value for StaticNode
[src]
#[must_use]fn value_type(&self) -> ValueType
[src]
#[must_use]fn is_null(&self) -> bool
[src]
#[must_use]fn is_float(&self) -> bool
[src]
#[must_use]fn is_integer(&self) -> bool
[src]
#[must_use]fn is_number(&self) -> bool
[src]
#[must_use]fn is_bool(&self) -> bool
[src]
#[must_use]fn is_i128(&self) -> bool
[src]
#[must_use]fn is_i64(&self) -> bool
[src]
#[must_use]fn is_i32(&self) -> bool
[src]
#[must_use]fn is_i16(&self) -> bool
[src]
#[must_use]fn is_i8(&self) -> bool
[src]
#[must_use]fn is_u128(&self) -> bool
[src]
#[must_use]fn is_u64(&self) -> bool
[src]
#[must_use]fn is_usize(&self) -> bool
[src]
#[must_use]fn is_u32(&self) -> bool
[src]
#[must_use]fn is_u16(&self) -> bool
[src]
#[must_use]fn is_u8(&self) -> bool
[src]
#[must_use]fn is_f64(&self) -> bool
[src]
#[must_use]fn is_f64_castable(&self) -> bool
[src]
#[must_use]fn is_f32(&self) -> bool
[src]
#[must_use]fn is_str(&self) -> bool
[src]
#[must_use]fn is_array(&self) -> bool
[src]
#[must_use]fn is_object(&self) -> bool
[src]
impl ValueAccess for StaticNode
[src]
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
#[must_use]fn as_array(&self) -> Option<&Self::Array>
[src]
#[must_use]fn as_object(&self) -> Option<&HashMap<Self::Key, Self>>
[src]
#[must_use]fn as_bool(&self) -> Option<bool>
[src]
#[must_use]fn as_i64(&self) -> Option<i64>
[src]
#[must_use]fn as_u64(&self) -> Option<u64>
[src]
#[must_use]fn as_f64(&self) -> Option<f64>
[src]
#[must_use]fn cast_f64(&self) -> Option<f64>
[src]
#[must_use]fn as_str(&self) -> Option<&str>
[src]
#[must_use]fn get<Q: ?Sized>(&self, k: &Q) -> Option<&Self::Target> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn contains_key<Q: ?Sized>(&self, k: &Q) -> bool where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn get_idx(&self, i: usize) -> Option<&Self::Target>
[src]
#[must_use]fn get_bool<Q: ?Sized>(&self, k: &Q) -> Option<bool> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn as_i128(&self) -> Option<i128>
[src]
#[must_use]fn get_i128<Q: ?Sized>(&self, k: &Q) -> Option<i128> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn get_i64<Q: ?Sized>(&self, k: &Q) -> Option<i64> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn as_i32(&self) -> Option<i32>
[src]
#[must_use]fn get_i32<Q: ?Sized>(&self, k: &Q) -> Option<i32> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn as_i16(&self) -> Option<i16>
[src]
#[must_use]fn get_i16<Q: ?Sized>(&self, k: &Q) -> Option<i16> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn as_i8(&self) -> Option<i8>
[src]
#[must_use]fn get_i8<Q: ?Sized>(&self, k: &Q) -> Option<i8> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn as_u128(&self) -> Option<u128>
[src]
#[must_use]fn get_u128<Q: ?Sized>(&self, k: &Q) -> Option<u128> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn get_u64<Q: ?Sized>(&self, k: &Q) -> Option<u64> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn as_usize(&self) -> Option<usize>
[src]
#[must_use]fn get_usize<Q: ?Sized>(&self, k: &Q) -> Option<usize> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn as_u32(&self) -> Option<u32>
[src]
#[must_use]fn get_u32<Q: ?Sized>(&self, k: &Q) -> Option<u32> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn as_u16(&self) -> Option<u16>
[src]
#[must_use]fn get_u16<Q: ?Sized>(&self, k: &Q) -> Option<u16> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn as_u8(&self) -> Option<u8>
[src]
#[must_use]fn get_u8<Q: ?Sized>(&self, k: &Q) -> Option<u8> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn get_f64<Q: ?Sized>(&self, k: &Q) -> Option<f64> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn as_f32(&self) -> Option<f32>
[src]
#[must_use]fn get_f32<Q: ?Sized>(&self, k: &Q) -> Option<f32> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn get_str<Q: ?Sized>(&self, k: &Q) -> Option<&str> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn get_array<Q: ?Sized>(
&self,
k: &Q
) -> Option<&<Self::Target as ValueAccess>::Array> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
&self,
k: &Q
) -> Option<&<Self::Target as ValueAccess>::Array> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
#[must_use]fn get_object<Q: ?Sized>(
&self,
k: &Q
) -> Option<&<Self::Target as ValueAccess>::Object> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
[src]
&self,
k: &Q
) -> Option<&<Self::Target as ValueAccess>::Object> where
Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord,
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,