[−][src]Enum rune::ast::Expr
A rune expression.
Variants
Self_(Self_)
The self
keyword.
Path(Path)
An path expression.
Decl(Decl)
A declaration.
ExprWhile(ExprWhile)
A while loop.
ExprLoop(ExprLoop)
An unconditional loop.
ExprFor(ExprFor)
An for loop.
ExprLet(ExprLet)
A let expression.
ExprIndexSet(ExprIndexSet)
An index set operation.
ExprIf(ExprIf)
An if expression.
ExprMatch(ExprMatch)
An match expression.
ExprCall(ExprCall)
A function call,
ExprFieldAccess(ExprFieldAccess)
A field access on an expression.
ExprGroup(ExprGroup)
A grouped expression.
ExprBinary(ExprBinary)
A binary expression.
ExprUnary(ExprUnary)
A unary expression.
ExprIndexGet(ExprIndexGet)
An index set operation.
ExprBreak(ExprBreak)
A break expression.
ExprYield(ExprYield)
A yield expression.
ExprBlock(ExprBlock)
A block as an expression.
ExprReturn(ExprReturn)
A return statement.
ExprAwait(ExprAwait)
An await expression.
ExprTry(ExprTry)
Try expression.
ExprSelect(ExprSelect)
A select expression.
ExprClosure(ExprClosure)
A closure expression.
LitUnit(LitUnit)
A unit expression.
LitBool(LitBool)
A boolean literal.
LitChar(LitChar)
A char literal.
LitByte(LitByte)
A byte literal.
LitNumber(LitNumber)
A literal number expression.
LitStr(LitStr)
A literal string expression.
LitByteStr(LitByteStr)
A literal byte string expression.
LitTemplate(LitTemplate)
A literal string expression.
LitVec(LitVec)
A literal vector declaration.
LitObject(LitObject)
A literal object declaration.
LitTuple(LitTuple)
A literal tuple declaration.
Implementations
impl Expr
[src]
pub fn produces_nothing(&self) -> bool
[src]
Test if the expression implicitly evaluates to nothing.
pub fn is_chainable(&self) -> bool
[src]
Test if expression should be chained by default.
pub fn span(&self) -> Span
[src]
Get the span of the expression.
pub fn is_const(&self) -> bool
[src]
Test if the entire expression is constant.
pub fn parse_open_paren(parser: &mut Parser<'_>) -> Result<Self, ParseError>
[src]
Parsing something that opens with a parenthesis.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,