pub enum Rule {
Show 72 variants
ArgList,
ArrayExpr,
ArrayTy,
AssignOp,
AssignStmt,
BinaryExpr,
Block,
BlockLikeStmt,
BreakStmt,
CallExpr,
CastExpr,
ConstBody,
ConstDecl,
ContinueStmt,
ElseBranch,
EnumBody,
EnumDecl,
EnumVariant,
Error,
Expr,
ExprStmt,
FieldExpr,
FieldInit,
ForExpr,
FuncBody,
FuncDecl,
FuncModifier,
FuncTy,
GenericArgs,
GenericClose,
GenericParams,
IfExpr,
ImplBody,
ImplDecl,
IndexExpr,
IndexInner,
Item,
LetStmt,
Literal,
LoopExpr,
ModBody,
ModDecl,
NamedTy,
Param,
ParamList,
ParenExpr,
Part,
Path,
PathExpr,
PrimitiveTy,
RangeExpr,
RecordBody,
RecordDecl,
RecordExpr,
RecordField,
RecordLitFields,
ReferenceTy,
ReturnStmt,
ReturnTy,
SourceFile,
Stmt,
Ty,
TypeAliasBody,
TypeAliasDecl,
UnaryExpr,
UnionBody,
UnionDecl,
UnionVariant,
UseBody,
UseDecl,
Visibility,
WhileExpr,
}Available on crate feature
parser only.Variants§
ArgList
ArrayExpr
ArrayTy
AssignOp
AssignStmt
BinaryExpr
Block
BlockLikeStmt
BreakStmt
CallExpr
CastExpr
ConstBody
ConstDecl
ContinueStmt
ElseBranch
EnumBody
EnumDecl
EnumVariant
Error
Expr
ExprStmt
FieldExpr
FieldInit
ForExpr
FuncBody
FuncDecl
FuncModifier
FuncTy
GenericArgs
GenericClose
GenericParams
IfExpr
ImplBody
ImplDecl
IndexExpr
IndexInner
Item
LetStmt
Literal
LoopExpr
ModBody
ModDecl
NamedTy
Param
ParamList
ParenExpr
Part
Path
PathExpr
PrimitiveTy
RangeExpr
RecordBody
RecordDecl
RecordExpr
RecordField
RecordLitFields
ReferenceTy
ReturnStmt
ReturnTy
SourceFile
Stmt
Ty
TypeAliasBody
TypeAliasDecl
UnaryExpr
UnionBody
UnionDecl
UnionVariant
UseBody
UseDecl
Visibility
WhileExpr
Trait Implementations§
impl Copy for Rule
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Forget for Rule
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more