Enum erg_parser::token::TokenCategory
source · pub enum TokenCategory {
Show 21 variants
Symbol,
Literal,
StrInterpLeft,
StrInterpMid,
StrInterpRight,
BinOp,
UnaryOp,
PostfixOp,
LEnclosure,
REnclosure,
SpecialBinOp,
DefOp,
LambdaOp,
Separator,
Reserved,
AtSign,
VBar,
UBar,
BOF,
EOF,
Illegal,
}
Variants§
Symbol
Literal
StrInterpLeft
StrInterpMid
StrInterpRight
BinOp
UnaryOp
PostfixOp
? <.. ..
LEnclosure
( [ { Indent
REnclosure
) } } Dedent
SpecialBinOp
, : :: :> <: . |> :=
DefOp
=
LambdaOp
-> =>
Separator
\n ;
Reserved
^ &
AtSign
@
VBar
|
UBar
_
BOF
EOF
Illegal
Implementations§
source§impl TokenCategory
impl TokenCategory
pub const fn is_block_op(&self) -> bool
Trait Implementations§
source§impl Clone for TokenCategory
impl Clone for TokenCategory
source§fn clone(&self) -> TokenCategory
fn clone(&self) -> TokenCategory
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TokenCategory
impl Debug for TokenCategory
source§impl Display for TokenCategory
impl Display for TokenCategory
source§impl PartialEq for TokenCategory
impl PartialEq for TokenCategory
source§fn 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 ==
.impl Copy for TokenCategory
impl Eq for TokenCategory
impl StructuralPartialEq for TokenCategory
Auto Trait Implementations§
impl Freeze for TokenCategory
impl RefUnwindSafe for TokenCategory
impl Send for TokenCategory
impl Sync for TokenCategory
impl Unpin for TokenCategory
impl UnwindSafe for TokenCategory
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