Struct PythonCompatibilityTag
pub struct PythonCompatibilityTag(/* private fields */);Implementations§
§impl PythonCompatibilityTag
impl PythonCompatibilityTag
pub fn new(
input: &str,
) -> Result<PythonCompatibilityTag, PythonVersionParseError>
pub fn new( input: &str, ) -> Result<PythonCompatibilityTag, PythonVersionParseError>
Creates non-empty Python tag metadata.
§Errors
Returns PythonVersionParseError::Empty when input is empty after trimming.
Trait Implementations§
§impl Clone for PythonCompatibilityTag
impl Clone for PythonCompatibilityTag
§fn clone(&self) -> PythonCompatibilityTag
fn clone(&self) -> PythonCompatibilityTag
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 PythonCompatibilityTag
impl Debug for PythonCompatibilityTag
§impl Display for PythonCompatibilityTag
impl Display for PythonCompatibilityTag
§impl FromStr for PythonCompatibilityTag
impl FromStr for PythonCompatibilityTag
§type Err = PythonVersionParseError
type Err = PythonVersionParseError
The associated error which can be returned from parsing.
§fn from_str(
input: &str,
) -> Result<PythonCompatibilityTag, <PythonCompatibilityTag as FromStr>::Err>
fn from_str( input: &str, ) -> Result<PythonCompatibilityTag, <PythonCompatibilityTag as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for PythonCompatibilityTag
impl Hash for PythonCompatibilityTag
§impl Ord for PythonCompatibilityTag
impl Ord for PythonCompatibilityTag
§fn cmp(&self, other: &PythonCompatibilityTag) -> Ordering
fn cmp(&self, other: &PythonCompatibilityTag) -> 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 PythonCompatibilityTag
impl PartialEq for PythonCompatibilityTag
§impl PartialOrd for PythonCompatibilityTag
impl PartialOrd for PythonCompatibilityTag
§impl TryFrom<&str> for PythonCompatibilityTag
impl TryFrom<&str> for PythonCompatibilityTag
§type Error = PythonVersionParseError
type Error = PythonVersionParseError
The type returned in the event of a conversion error.
§fn try_from(
value: &str,
) -> Result<PythonCompatibilityTag, <PythonCompatibilityTag as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<PythonCompatibilityTag, <PythonCompatibilityTag as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for PythonCompatibilityTag
impl StructuralPartialEq for PythonCompatibilityTag
Auto Trait Implementations§
impl Freeze for PythonCompatibilityTag
impl RefUnwindSafe for PythonCompatibilityTag
impl Send for PythonCompatibilityTag
impl Sync for PythonCompatibilityTag
impl Unpin for PythonCompatibilityTag
impl UnsafeUnpin for PythonCompatibilityTag
impl UnwindSafe for PythonCompatibilityTag
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