Enum tau_engine::Value [−][src]
pub enum Value<'a> {
Null,
Bool(bool),
Float(f64),
Int(i64),
UInt(u64),
String(Cow<'a, str>),
Array(&'a dyn Array),
Object(&'a dyn Object),
}Expand description
A dynamic data type that the solver can reason on.
Variants
Represents an empty type.
Represents a boolean.
Tuple Fields of Bool
0: boolRepresents a float.
Tuple Fields of Float
0: f64Represents an integer.
Tuple Fields of Int
0: i64Represents an unsigned integer.
Tuple Fields of UInt
0: u64Represents a string.
Represents an array.
Tuple Fields of Array
0: &'a dyn ArrayRepresents an object.
Tuple Fields of Object
0: &'a dyn ObjectImplementations
Return the associated array if the Value is an Array.
Return the associated object if the Value is an Object.
Returns the Value as an i64 if possible.
Currently supports: Int & UInt.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Value<'a>
impl<'a> !UnwindSafe for Value<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more