[−][src]Trait libslide::grammar::mem::RcExpression
Describes a reference-counted slide expression.
Associated Types
type Inner
The type of expression held by Self.
Required methods
fn is_const(&self) -> bool
Returns whether the expression is a statically-evaluatable constant.
fn is_var(&self) -> bool
Returns whether the expression is a terminable variable (or variable-like).
fn paren(inner: Self, span: Span) -> Self
Paranthesizes inner
.
fn bracket(inner: Self, span: Span) -> Self
Brackets inner
.
fn binary(expr: BinaryExpr<Self>, span: Span) -> Self
Creates an RcExpression from a BinaryExpr.
fn unary(expr: UnaryExpr<Self>, span: Span) -> Self
Creates an RcExpression from a UnaryExpr.
fn empty(span: Span) -> Self
Returns an empty expression.
fn span(&self) -> Span
Returns the span of the expression.