Enum PythonReservedWord
pub enum PythonReservedWord {
Keyword(PythonKeyword),
SoftKeyword(PythonSoftKeyword),
}Expand description
A hard or soft reserved Python word.
Variants§
Keyword(PythonKeyword)
SoftKeyword(PythonSoftKeyword)
Implementations§
§impl PythonReservedWord
impl PythonReservedWord
Trait Implementations§
§impl Clone for PythonReservedWord
impl Clone for PythonReservedWord
§fn clone(&self) -> PythonReservedWord
fn clone(&self) -> PythonReservedWord
Returns a duplicate 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 more§impl Debug for PythonReservedWord
impl Debug for PythonReservedWord
§impl Display for PythonReservedWord
impl Display for PythonReservedWord
§impl FromStr for PythonReservedWord
impl FromStr for PythonReservedWord
§type Err = PythonKeywordParseError
type Err = PythonKeywordParseError
The associated error which can be returned from parsing.
§fn from_str(
input: &str,
) -> Result<PythonReservedWord, <PythonReservedWord as FromStr>::Err>
fn from_str( input: &str, ) -> Result<PythonReservedWord, <PythonReservedWord as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for PythonReservedWord
impl Hash for PythonReservedWord
§impl Ord for PythonReservedWord
impl Ord for PythonReservedWord
§fn cmp(&self, other: &PythonReservedWord) -> Ordering
fn cmp(&self, other: &PythonReservedWord) -> Ordering
1.21.0 · 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
§impl PartialEq for PythonReservedWord
impl PartialEq for PythonReservedWord
§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