pub enum ReifiedValue<'h> {
Number(f64),
Bool(bool),
Null,
List(&'h Vec<Value>, ListPointer),
String(&'h str, StringPointer),
Record(&'h IndexMap<String, Value>, RecordPointer),
Lambda(&'h LambdaDef, LambdaPointer),
Spread(ReifiedIterableValue<'h>, IterablePointer),
BuiltIn(BuiltInFunction),
}Expand description
A value, after it has been “reified” (borrowed) from a pointer.
Variants§
Number(f64)
A number is a floating-point value.
Bool(bool)
A boolean value is either true or false.
Null
A null value represents the absence of a value.
List(&'h Vec<Value>, ListPointer)
A list is a sequence of values.
String(&'h str, StringPointer)
A string is a sequence of characters.
Record(&'h IndexMap<String, Value>, RecordPointer)
A record is a collection of key-value pairs.
Lambda(&'h LambdaDef, LambdaPointer)
A lambda is a function definition.
Spread(ReifiedIterableValue<'h>, IterablePointer)
A spread value is “spread” into its container when it is used in a list, record, or function call. (internal only)
BuiltIn(BuiltInFunction)
A built-in function is a function that is implemented in Rust.
Implementations§
Source§impl<'h> ReifiedValue<'h>
impl<'h> ReifiedValue<'h>
Trait Implementations§
Source§impl<'h> Clone for ReifiedValue<'h>
impl<'h> Clone for ReifiedValue<'h>
Source§fn clone(&self) -> ReifiedValue<'h>
fn clone(&self) -> ReifiedValue<'h>
Returns a duplicate 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<'h> Debug for ReifiedValue<'h>
impl<'h> Debug for ReifiedValue<'h>
Source§impl From<ReifiedValue<'_>> for Value
impl From<ReifiedValue<'_>> for Value
Source§fn from(value: ReifiedValue<'_>) -> Self
fn from(value: ReifiedValue<'_>) -> Self
Converts to this type from the input type.
Source§impl<'h> PartialEq for ReifiedValue<'h>
impl<'h> PartialEq for ReifiedValue<'h>
impl<'h> Copy for ReifiedValue<'h>
impl<'h> StructuralPartialEq for ReifiedValue<'h>
Auto Trait Implementations§
impl<'h> Freeze for ReifiedValue<'h>
impl<'h> RefUnwindSafe for ReifiedValue<'h>
impl<'h> Send for ReifiedValue<'h>
impl<'h> Sync for ReifiedValue<'h>
impl<'h> Unpin for ReifiedValue<'h>
impl<'h> UnwindSafe for ReifiedValue<'h>
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