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