pub enum Rule {
Show 71 variants
EOI,
WHITESPACE,
Comment,
Program,
Statement,
Label,
LabelReference,
Register,
Ident,
Instruction,
PhantomInstruction,
Add,
And,
Not,
Ldr,
Ldi,
Lea,
Ld,
Sti,
Str,
St,
Br,
Jmp,
Jsr,
Jsrr,
Nop,
Ret,
Halt,
Puts,
Getc,
Out,
In,
Trap,
AddInstruction,
AndInstruction,
NotInstruction,
LdInstruction,
LdiInstruction,
LdrInstruction,
LeaInstruction,
StInstruction,
StiInstruction,
StrInstruction,
BrInstruction,
JmpInstruction,
JsrInstruction,
JsrrInstruction,
NopInstruction,
RetInstruction,
HaltInstruction,
PutsInstruction,
GetcInstruction,
OutInstruction,
InInstruction,
TrapInstruction,
HexAddress,
HexValue,
DecValue,
Immediate,
StringLiteral,
Directive,
ORIG,
FILL,
END,
BLKW,
STRINGZ,
OrigDirective,
FillDirective,
EndDirective,
BlkwDirective,
StringzDirective,
}Variants§
EOI
End-of-input
WHITESPACE
Comment
Program
Statement
Label
LabelReference
Register
Ident
Instruction
PhantomInstruction
Add
And
Not
Ldr
Ldi
Lea
Ld
Sti
Str
St
Br
Jmp
Jsr
Jsrr
Nop
Ret
Halt
Puts
Getc
Out
In
Trap
AddInstruction
AndInstruction
NotInstruction
LdInstruction
LdiInstruction
LdrInstruction
LeaInstruction
StInstruction
StiInstruction
StrInstruction
BrInstruction
JmpInstruction
JsrInstruction
JsrrInstruction
NopInstruction
RetInstruction
HaltInstruction
PutsInstruction
GetcInstruction
OutInstruction
InInstruction
TrapInstruction
HexAddress
HexValue
DecValue
Immediate
StringLiteral
Directive
ORIG
FILL
END
BLKW
STRINGZ
OrigDirective
FillDirective
EndDirective
BlkwDirective
StringzDirective
Implementations§
Trait Implementations§
Source§impl Ord for Rule
impl Ord for Rule
Source§impl PartialOrd for Rule
impl PartialOrd for Rule
impl Copy for Rule
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin 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<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