Enum erg_parser::token::TokenCategory
source · [−]pub enum TokenCategory {
Show 19 variants
Symbol,
Literal,
BinOp,
UnaryOp,
PostfixOp,
LEnclosure,
REnclosure,
SpecialBinOp,
DefOp,
LambdaOp,
Separator,
Caret,
Amper,
AtSign,
VBar,
UBar,
BOF,
EOF,
Illegal,
}
Variants
Symbol
Literal
BinOp
UnaryOp
PostfixOp
? <.. ..
LEnclosure
( [ { Indent
REnclosure
) } } Dedent
SpecialBinOp
, : :: :> <: . |> |=
DefOp
=
LambdaOp
-> =>
Separator
\n ;
Caret
^ (reserved)
Amper
&
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 more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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