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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 for PythonToken
impl PartialEq for PythonToken
Source§impl ScanToken for PythonToken
impl ScanToken for PythonToken
impl Copy for PythonToken
impl Eq for PythonToken
impl StructuralPartialEq for PythonToken
Auto Trait Implementations§
impl Freeze for PythonToken
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