pub struct PythonPlatformTag(/* private fields */);Implementations§
Source§impl PythonPlatformTag
impl PythonPlatformTag
Sourcepub fn new(input: &str) -> Result<Self, PythonVersionParseError>
pub fn new(input: &str) -> Result<Self, PythonVersionParseError>
Creates non-empty Python tag metadata.
§Errors
Returns PythonVersionParseError::Empty when input is empty after trimming.
Trait Implementations§
Source§impl Clone for PythonPlatformTag
impl Clone for PythonPlatformTag
Source§fn clone(&self) -> PythonPlatformTag
fn clone(&self) -> PythonPlatformTag
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 PythonPlatformTag
impl Debug for PythonPlatformTag
Source§impl Display for PythonPlatformTag
impl Display for PythonPlatformTag
Source§impl FromStr for PythonPlatformTag
impl FromStr for PythonPlatformTag
Source§impl Hash for PythonPlatformTag
impl Hash for PythonPlatformTag
Source§impl Ord for PythonPlatformTag
impl Ord for PythonPlatformTag
Source§fn cmp(&self, other: &PythonPlatformTag) -> Ordering
fn cmp(&self, other: &PythonPlatformTag) -> 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 PythonPlatformTag
impl PartialEq for PythonPlatformTag
Source§fn eq(&self, other: &PythonPlatformTag) -> bool
fn eq(&self, other: &PythonPlatformTag) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PythonPlatformTag
impl PartialOrd for PythonPlatformTag
Source§impl TryFrom<&str> for PythonPlatformTag
impl TryFrom<&str> for PythonPlatformTag
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