pub enum PythonSoftKeyword {
Match,
Case,
Type,
Underscore,
}Expand description
Python soft keywords used by pattern matching and newer syntax contexts.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PythonSoftKeyword
impl Clone for PythonSoftKeyword
Source§fn clone(&self) -> PythonSoftKeyword
fn clone(&self) -> PythonSoftKeyword
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 PythonSoftKeyword
impl Debug for PythonSoftKeyword
Source§impl Display for PythonSoftKeyword
impl Display for PythonSoftKeyword
Source§impl FromStr for PythonSoftKeyword
impl FromStr for PythonSoftKeyword
Source§type Err = PythonKeywordParseError
type Err = PythonKeywordParseError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<PythonSoftKeyword, <PythonSoftKeyword as FromStr>::Err>
fn from_str( input: &str, ) -> Result<PythonSoftKeyword, <PythonSoftKeyword as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for PythonSoftKeyword
impl Hash for PythonSoftKeyword
Source§impl Ord for PythonSoftKeyword
impl Ord for PythonSoftKeyword
Source§fn cmp(&self, other: &PythonSoftKeyword) -> Ordering
fn cmp(&self, other: &PythonSoftKeyword) -> 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 PythonSoftKeyword
impl PartialEq for PythonSoftKeyword
Source§fn eq(&self, other: &PythonSoftKeyword) -> bool
fn eq(&self, other: &PythonSoftKeyword) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PythonSoftKeyword
impl PartialOrd for PythonSoftKeyword
impl Copy for PythonSoftKeyword
impl Eq for PythonSoftKeyword
impl StructuralPartialEq for PythonSoftKeyword
Auto Trait Implementations§
impl Freeze for PythonSoftKeyword
impl RefUnwindSafe for PythonSoftKeyword
impl Send for PythonSoftKeyword
impl Sync for PythonSoftKeyword
impl Unpin for PythonSoftKeyword
impl UnsafeUnpin for PythonSoftKeyword
impl UnwindSafe for PythonSoftKeyword
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