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