pub enum Statement {
Noop(Semi),
Let(Displayed<LetStatement>),
Flag(FlagStatement),
Ref(Displayed<RefStatement>),
Rule(Displayed<RuleStatement>),
}
Expand description
A general statement. A rule, let
or a ref
Variants§
Noop(Semi)
No operation
Let(Displayed<LetStatement>)
let
Flag(FlagStatement)
Flag
Ref(Displayed<RefStatement>)
Reference
Rule(Displayed<RuleStatement>)
rule
Implementations§
Trait Implementations§
Source§impl Parse for Statement
impl Parse for Statement
Source§type FirstToken = TokenOr<LSquare, TokenOr<Semi, TokenOr<At, TokenOr<Question, TokenOr<Let, <SimpleExpression as Parse>::FirstToken>>>>>
type FirstToken = TokenOr<LSquare, TokenOr<Semi, TokenOr<At, TokenOr<Question, TokenOr<Let, <SimpleExpression as Parse>::FirstToken>>>>>
The first token of a structure.
Auto Trait Implementations§
impl Freeze for Statement
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
Source§impl<T> CheckParses for Twhere
T: Parse,
impl<T> CheckParses for Twhere
T: Parse,
Source§fn check_parses<'t, I>(input: &InputStream<'t, I>) -> Option<bool>
fn check_parses<'t, I>(input: &InputStream<'t, I>) -> Option<bool>
Check if
Self
would parse given the tokens.Source§impl<T> Convert for T
impl<T> Convert for T
Source§fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
Convert
self
into a specific type. Read moreSource§fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
Check if
self
can be converted into a specific type. Read more