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
impl Clone for StaticNode
source§fn clone(&self) -> StaticNode
fn clone(&self) -> StaticNode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StaticNode
impl Debug for StaticNode
source§impl Default for StaticNode
impl Default for StaticNode
source§impl Display for StaticNode
impl Display for StaticNode
source§impl From<()> for StaticNode
impl From<()> for StaticNode
source§impl From<bool> for StaticNode
impl From<bool> for StaticNode
source§impl From<f32> for StaticNode
impl From<f32> for StaticNode
source§impl From<f64> for StaticNode
impl From<f64> for StaticNode
source§impl From<i16> for StaticNode
impl From<i16> for StaticNode
source§impl From<i32> for StaticNode
impl From<i32> for StaticNode
source§impl From<i64> for StaticNode
impl From<i64> for StaticNode
source§impl From<i8> for StaticNode
impl From<i8> for StaticNode
source§impl From<u16> for StaticNode
impl From<u16> for StaticNode
source§impl From<u32> for StaticNode
impl From<u32> for StaticNode
source§impl From<u64> for StaticNode
impl From<u64> for StaticNode
source§impl From<u8> for StaticNode
impl From<u8> for StaticNode
source§impl From<usize> for StaticNode
impl From<usize> for StaticNode
source§impl Index<&str> for StaticNode
impl Index<&str> for StaticNode
source§impl Index<usize> for StaticNode
impl Index<usize> for StaticNode
source§impl IndexMut<&str> for StaticNode
impl IndexMut<&str> for StaticNode
source§impl IndexMut<usize> for StaticNode
impl IndexMut<usize> for StaticNode
source§impl PartialEq<&str> for StaticNode
impl PartialEq<&str> for StaticNode
source§impl PartialEq<()> for StaticNode
impl PartialEq<()> for StaticNode
source§impl PartialEq<String> for StaticNode
impl PartialEq<String> for StaticNode
source§impl PartialEq<bool> for StaticNode
impl PartialEq<bool> for StaticNode
source§impl PartialEq<f32> for StaticNode
impl PartialEq<f32> for StaticNode
source§impl PartialEq<f64> for StaticNode
impl PartialEq<f64> for StaticNode
source§impl PartialEq<i128> for StaticNode
impl PartialEq<i128> for StaticNode
source§impl PartialEq<i16> for StaticNode
impl PartialEq<i16> for StaticNode
source§impl PartialEq<i32> for StaticNode
impl PartialEq<i32> for StaticNode
source§impl PartialEq<i64> for StaticNode
impl PartialEq<i64> for StaticNode
source§impl PartialEq<i8> for StaticNode
impl PartialEq<i8> for StaticNode
source§impl PartialEq<str> for StaticNode
impl PartialEq<str> for StaticNode
source§impl PartialEq<u128> for StaticNode
impl PartialEq<u128> for StaticNode
source§impl PartialEq<u16> for StaticNode
impl PartialEq<u16> for StaticNode
source§impl PartialEq<u32> for StaticNode
impl PartialEq<u32> for StaticNode
source§impl PartialEq<u64> for StaticNode
impl PartialEq<u64> for StaticNode
source§impl PartialEq<u8> for StaticNode
impl PartialEq<u8> for StaticNode
source§impl PartialEq<usize> for StaticNode
impl PartialEq<usize> for StaticNode
source§impl PartialEq for StaticNode
impl PartialEq for StaticNode
source§impl TypedValue for StaticNode
impl TypedValue for StaticNode
source§fn value_type(&self) -> ValueType
fn value_type(&self) -> ValueType
Gets the type of the current value
source§impl ValueAsScalar for StaticNode
impl ValueAsScalar for StaticNode
impl Copy for StaticNode
Auto Trait Implementations§
impl Freeze for StaticNode
impl RefUnwindSafe for StaticNode
impl Send for StaticNode
impl Sync for StaticNode
impl Unpin for StaticNode
impl UnwindSafe for StaticNode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> TypedScalarValue for Twhere
T: ValueAsScalar,
impl<T> TypedScalarValue for Twhere
T: ValueAsScalar,
source§fn is_integer(&self) -> bool
fn is_integer(&self) -> bool
returns true if the current value a integer number
source§fn is_f64_castable(&self) -> bool
fn is_f64_castable(&self) -> bool
returns true if the current value can be cast into a f64
source§impl<T> ValueTryAsScalar for Twhere
T: ValueAsScalar + TypedValue,
impl<T> ValueTryAsScalar for Twhere
T: ValueAsScalar + TypedValue,
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn 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