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§fn default() -> StaticNode
fn default() -> StaticNode
Returns the “default value” for a type. Read more
Source§impl Display for StaticNode
impl Display for StaticNode
Source§impl From<()> for StaticNode
impl From<()> for StaticNode
Source§fn from(_b: ()) -> StaticNode
fn from(_b: ()) -> StaticNode
Converts to this type from the input type.
Source§impl From<StaticNode> for Value
impl From<StaticNode> for Value
Source§fn from(s: StaticNode) -> Self
fn from(s: StaticNode) -> Self
Converts to this type from the input type.
Source§impl<'borrow, 'tape, 'value> From<StaticNode> for Value<'borrow, 'tape, 'value>
impl<'borrow, 'tape, 'value> From<StaticNode> for Value<'borrow, 'tape, 'value>
Source§fn from(v: StaticNode) -> Self
fn from(v: StaticNode) -> Self
Converts to this type from the input type.
Source§impl<'value> From<StaticNode> for Value<'value>
impl<'value> From<StaticNode> for Value<'value>
Source§fn from(s: StaticNode) -> Self
fn from(s: StaticNode) -> Self
Converts to this type from the input type.
Source§impl From<bool> for StaticNode
impl From<bool> for StaticNode
Source§fn from(b: bool) -> StaticNode
fn from(b: bool) -> StaticNode
Converts to this type from the input type.
Source§impl From<f32> for StaticNode
impl From<f32> for StaticNode
Source§fn from(f: f32) -> StaticNode
fn from(f: f32) -> StaticNode
Converts to this type from the input type.
Source§impl From<f64> for StaticNode
impl From<f64> for StaticNode
Source§fn from(f: f64) -> StaticNode
fn from(f: f64) -> StaticNode
Converts to this type from the input type.
Source§impl From<i16> for StaticNode
impl From<i16> for StaticNode
Source§fn from(i: i16) -> StaticNode
fn from(i: i16) -> StaticNode
Converts to this type from the input type.
Source§impl From<i32> for StaticNode
impl From<i32> for StaticNode
Source§fn from(i: i32) -> StaticNode
fn from(i: i32) -> StaticNode
Converts to this type from the input type.
Source§impl From<i64> for StaticNode
impl From<i64> for StaticNode
Source§fn from(i: i64) -> StaticNode
fn from(i: i64) -> StaticNode
Converts to this type from the input type.
Source§impl From<i8> for StaticNode
impl From<i8> for StaticNode
Source§fn from(i: i8) -> StaticNode
fn from(i: i8) -> StaticNode
Converts to this type from the input type.
Source§impl From<u16> for StaticNode
impl From<u16> for StaticNode
Source§fn from(i: u16) -> StaticNode
fn from(i: u16) -> StaticNode
Converts to this type from the input type.
Source§impl From<u32> for StaticNode
impl From<u32> for StaticNode
Source§fn from(i: u32) -> StaticNode
fn from(i: u32) -> StaticNode
Converts to this type from the input type.
Source§impl From<u64> for StaticNode
impl From<u64> for StaticNode
Source§fn from(i: u64) -> StaticNode
fn from(i: u64) -> StaticNode
Converts to this type from the input type.
Source§impl From<u8> for StaticNode
impl From<u8> for StaticNode
Source§fn from(i: u8) -> StaticNode
fn from(i: u8) -> StaticNode
Converts to this type from the input type.
Source§impl From<usize> for StaticNode
impl From<usize> for StaticNode
Source§fn from(i: usize) -> StaticNode
fn from(i: usize) -> StaticNode
Converts to this type from the input type.
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§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