Enum PythonSoftKeyword
pub enum PythonSoftKeyword {
Match,
Case,
Type,
Underscore,
}Expand description
Python soft keywords used by pattern matching and newer syntax contexts.
Variants§
Implementations§
§impl PythonSoftKeyword
impl PythonSoftKeyword
Trait Implementations§
§impl Clone for PythonSoftKeyword
impl Clone for PythonSoftKeyword
§fn clone(&self) -> PythonSoftKeyword
fn clone(&self) -> PythonSoftKeyword
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 PythonSoftKeyword
impl Debug for PythonSoftKeyword
§impl Display for PythonSoftKeyword
impl Display for PythonSoftKeyword
§impl FromStr for PythonSoftKeyword
impl FromStr for PythonSoftKeyword
§type Err = PythonKeywordParseError
type Err = PythonKeywordParseError
The associated error which can be returned from parsing.
§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 more§impl Hash for PythonSoftKeyword
impl Hash for PythonSoftKeyword
§impl Ord for PythonSoftKeyword
impl Ord for PythonSoftKeyword
§fn cmp(&self, other: &PythonSoftKeyword) -> Ordering
fn cmp(&self, other: &PythonSoftKeyword) -> 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 PythonSoftKeyword
impl PartialEq for PythonSoftKeyword
§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