pub enum Value {
String(String),
Fn(Box<BuiltinFn<'static>>),
Bool(bool),
Type(Box<Type>),
}Variants§
Implementations§
Source§impl Value
impl Value
pub fn get_type(&self) -> Type
pub fn get_string(&self) -> ExprResult<&str>
pub fn get_func(&self) -> ExprResult<Box<BuiltinFn<'_>>>
pub fn get_bool(&self) -> ExprResult<bool>
Trait Implementations§
impl StructuralPartialEq for Value
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