Enum erg_parser::token::TokenCategory
source · [−]pub enum TokenCategory {
Show 18 variants
Symbol,
Literal,
BinOp,
UnaryOp,
PostfixOp,
LEnclosure,
REnclosure,
SpecialBinOp,
DefOp,
LambdaOp,
Separator,
Reserved,
AtSign,
VBar,
UBar,
BOF,
EOF,
Illegal,
}
Variants
Symbol
Literal
BinOp
UnaryOp
PostfixOp
? <.. ..
LEnclosure
( [ { Indent
REnclosure
) } } Dedent
SpecialBinOp
, : :: :> <: . |> :=
DefOp
=
LambdaOp
-> =>
Separator
\n ;
Reserved
^ &
AtSign
@
VBar
|
UBar
_
BOF
EOF
Illegal
Implementations
sourceimpl TokenCategory
impl TokenCategory
pub const fn is_block_op(&self) -> bool
Trait Implementations
sourceimpl Clone for TokenCategory
impl Clone for TokenCategory
sourcefn clone(&self) -> TokenCategory
fn clone(&self) -> TokenCategory
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TokenCategory
impl Debug for TokenCategory
sourceimpl PartialEq<TokenCategory> for TokenCategory
impl PartialEq<TokenCategory> for TokenCategory
sourcefn eq(&self, other: &TokenCategory) -> bool
fn eq(&self, other: &TokenCategory) -> bool
impl Copy for TokenCategory
impl Eq for TokenCategory
impl StructuralEq for TokenCategory
impl StructuralPartialEq for TokenCategory
Auto Trait Implementations
impl RefUnwindSafe for TokenCategory
impl Send for TokenCategory
impl Sync for TokenCategory
impl Unpin for TokenCategory
impl UnwindSafe for TokenCategory
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more