pub enum Value {
None,
Bool(bool),
Number(f64),
String(Symbol),
List(List),
Map(Map),
Fn(Fn),
Object(Rc<dyn Object>),
}
Expand description
Value is the dynamic type that represents an active Hatter object, including objects you define in your own code.
Variants§
Implementations§
Trait Implementations§
Source§impl<V1, V2, V3> From<(V1, V2, V3)> for Value
impl<V1, V2, V3> From<(V1, V2, V3)> for Value
Source§fn from(f: (V1, V2, V3)) -> Value
fn from(f: (V1, V2, V3)) -> Value
Converts to this type from the input type.
Source§impl<V1, V2, V3, V4> From<(V1, V2, V3, V4)> for Value
impl<V1, V2, V3, V4> From<(V1, V2, V3, V4)> for Value
Source§fn from(f: (V1, V2, V3, V4)) -> Value
fn from(f: (V1, V2, V3, V4)) -> Value
Converts to this type from the input type.
Source§impl<V1, V2, V3, V4, V5> From<(V1, V2, V3, V4, V5)> for Value
impl<V1, V2, V3, V4, V5> From<(V1, V2, V3, V4, V5)> for Value
Source§fn from(f: (V1, V2, V3, V4, V5)) -> Value
fn from(f: (V1, V2, V3, V4, V5)) -> Value
Converts to this type from the input type.
Source§impl<V1, V2, V3, V4, V5, V6> From<(V1, V2, V3, V4, V5, V6)> for Value
impl<V1, V2, V3, V4, V5, V6> From<(V1, V2, V3, V4, V5, V6)> for Value
Source§fn from(f: (V1, V2, V3, V4, V5, V6)) -> Value
fn from(f: (V1, V2, V3, V4, V5, V6)) -> Value
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Value
impl !RefUnwindSafe for Value
impl !Send for Value
impl !Sync for Value
impl Unpin for Value
impl !UnwindSafe for Value
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