pub enum Statement {
Expression(Expression),
DefineVariable(String, Vec<Decorator>, Expression, Markup, Type),
DefineFunction(String, Vec<String>, Vec<(Span, String, bool, Markup, Type)>, Option<Expression>, Markup, Type),
DefineDimension(String, Vec<DimensionExpression>),
DefineBaseUnit(String, Vec<Decorator>, Markup, Type),
DefineDerivedUnit(String, Expression, Vec<Decorator>, Markup, Type),
ProcedureCall(ProcedureKind, Vec<Expression>),
}
Variants§
Expression(Expression)
DefineVariable(String, Vec<Decorator>, Expression, Markup, Type)
DefineFunction(String, Vec<String>, Vec<(Span, String, bool, Markup, Type)>, Option<Expression>, Markup, Type)
DefineDimension(String, Vec<DimensionExpression>)
DefineBaseUnit(String, Vec<Decorator>, Markup, Type)
DefineDerivedUnit(String, Expression, Vec<Decorator>, Markup, Type)
ProcedureCall(ProcedureKind, Vec<Expression>)
Implementations§
Trait Implementations§
source§impl PartialEq for Statement
impl PartialEq for Statement
source§impl PrettyPrint for Statement
impl PrettyPrint for Statement
fn pretty_print(&self) -> Markup
impl StructuralPartialEq for Statement
Auto Trait Implementations§
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
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