Enum any_lexer::PythonToken
source · pub enum PythonToken {
Show 15 variants
Space,
LineComment,
ExplicitLineJoiner,
Ident,
Keyword,
SoftKeyword,
ShortString,
LongString,
ShortBytes,
LongBytes,
Int,
Float,
Delim,
Punct,
Unknown,
}
Variants§
Space
LineComment
ExplicitLineJoiner
Ident
Keyword
SoftKeyword
ShortString
LongString
ShortBytes
LongBytes
Int
Float
Delim
Punct
Unknown
Given valid Python code, then this variant should never be encountered. If is is encountered, then check if an issue has already been submitted, otherwise please submit an issue.
Trait Implementations§
source§impl Clone for PythonToken
impl Clone for PythonToken
source§fn clone(&self) -> PythonToken
fn clone(&self) -> PythonToken
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 PythonToken
impl Debug for PythonToken
source§impl PartialEq<PythonToken> for PythonToken
impl PartialEq<PythonToken> for PythonToken
source§fn eq(&self, other: &PythonToken) -> bool
fn eq(&self, other: &PythonToken) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ScanToken for PythonToken
impl ScanToken for PythonToken
impl Copy for PythonToken
impl Eq for PythonToken
impl StructuralEq for PythonToken
impl StructuralPartialEq for PythonToken
Auto Trait Implementations§
impl RefUnwindSafe for PythonToken
impl Send for PythonToken
impl Sync for PythonToken
impl Unpin for PythonToken
impl UnwindSafe for PythonToken
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