[−][src]Enum mc_parser::ast::Statement

pub enum Statement<'a> {
    If(Box<IfStatement<'a>>),
    While(Box<WhileStatement<'a>>),
    Ret(ReturnStatement<'a>),
    Decl(Declaration<'a>),
    Assignment(Box<Assignment<'a>>),
    Expression(Expression<'a>),
    Compound(CompoundStatement<'a>),
}

Variants

If(Box<IfStatement<'a>>)
While(Box<WhileStatement<'a>>)
Ret(ReturnStatement<'a>)
Decl(Declaration<'a>)
Assignment(Box<Assignment<'a>>)
Expression(Expression<'a>)
Compound(CompoundStatement<'a>)

Trait Implementations

impl<'a> Debug for Statement<'a>[src]

impl<'a> FromPest<'a> for Statement<'a>[src]

type Rule = Rule

The rule type for the parse tree this type corresponds to.

type FatalError = Error<Rule>

A fatal error during conversion.

impl<'a> PartialEq<Statement<'a>> for Statement<'a>[src]

impl<'a> StructuralPartialEq for Statement<'a>[src]

impl<'a> TryFrom<&'a str> for Statement<'a>[src]

type Error = ConversionError<Error<Rule>>

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Statement<'a>

impl<'a> Send for Statement<'a>

impl<'a> Sync for Statement<'a>

impl<'a> Unpin for Statement<'a>

impl<'a> UnwindSafe for Statement<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.