pub enum PythonReservedWord {
Keyword(PythonKeyword),
SoftKeyword(PythonSoftKeyword),
}Expand description
A hard or soft reserved Python word.
Variants§
Keyword(PythonKeyword)
SoftKeyword(PythonSoftKeyword)
Implementations§
Trait Implementations§
Source§impl Clone for PythonReservedWord
impl Clone for PythonReservedWord
Source§fn clone(&self) -> PythonReservedWord
fn clone(&self) -> PythonReservedWord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PythonReservedWord
impl Debug for PythonReservedWord
Source§impl Display for PythonReservedWord
impl Display for PythonReservedWord
Source§impl FromStr for PythonReservedWord
impl FromStr for PythonReservedWord
Source§impl Hash for PythonReservedWord
impl Hash for PythonReservedWord
Source§impl Ord for PythonReservedWord
impl Ord for PythonReservedWord
Source§fn cmp(&self, other: &PythonReservedWord) -> Ordering
fn cmp(&self, other: &PythonReservedWord) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PythonReservedWord
impl PartialEq for PythonReservedWord
Source§fn eq(&self, other: &PythonReservedWord) -> bool
fn eq(&self, other: &PythonReservedWord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PythonReservedWord
impl PartialOrd for PythonReservedWord
impl Copy for PythonReservedWord
impl Eq for PythonReservedWord
impl StructuralPartialEq for PythonReservedWord
Auto Trait Implementations§
impl Freeze for PythonReservedWord
impl RefUnwindSafe for PythonReservedWord
impl Send for PythonReservedWord
impl Sync for PythonReservedWord
impl Unpin for PythonReservedWord
impl UnsafeUnpin for PythonReservedWord
impl UnwindSafe for PythonReservedWord
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