Struct rhai::Expression [−][src]
pub struct Expression<'a>(_);
Expand description
An expression sub-tree in an AST.
Implementations
If this expression is a variable name, return it. Otherwise None.
Get the value of this expression if it is a literal constant.
Supports INT, FLOAT, (), char, bool and
ImmutableString.
Returns None also if the constant is not of the specified type.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Expression<'a>impl<'a> !Send for Expression<'a>impl<'a> !Sync for Expression<'a>impl<'a> Unpin for Expression<'a>impl<'a> !UnwindSafe for Expression<'a>Blanket Implementations
Mutably borrows from an owned value. Read more