Enum endbasic_core::ast::Value
source · [−]Expand description
Represents an evaluated value.
Variants
Boolean(bool)
A boolean value.
Double(f64)
A double-precision floating point value.
Integer(i32)
An integer value.
Text(String)
A string value.
Implementations
sourceimpl Value
impl Value
sourcepub fn as_vartype(&self) -> VarType
pub fn as_vartype(&self) -> VarType
Returns the type of the value as a VarType
.
Trait Implementations
impl StructuralPartialEq for Value
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more