pub struct PythonCompatibilityTag(/* private fields */);Implementations§
Source§impl PythonCompatibilityTag
impl PythonCompatibilityTag
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 PythonCompatibilityTag
impl Clone for PythonCompatibilityTag
Source§fn clone(&self) -> PythonCompatibilityTag
fn clone(&self) -> PythonCompatibilityTag
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 PythonCompatibilityTag
impl Debug for PythonCompatibilityTag
Source§impl Display for PythonCompatibilityTag
impl Display for PythonCompatibilityTag
Source§impl FromStr for PythonCompatibilityTag
impl FromStr for PythonCompatibilityTag
Source§impl Hash for PythonCompatibilityTag
impl Hash for PythonCompatibilityTag
Source§impl Ord for PythonCompatibilityTag
impl Ord for PythonCompatibilityTag
Source§fn cmp(&self, other: &PythonCompatibilityTag) -> Ordering
fn cmp(&self, other: &PythonCompatibilityTag) -> 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 PythonCompatibilityTag
impl PartialEq for PythonCompatibilityTag
Source§fn eq(&self, other: &PythonCompatibilityTag) -> bool
fn eq(&self, other: &PythonCompatibilityTag) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PythonCompatibilityTag
impl PartialOrd for PythonCompatibilityTag
Source§impl TryFrom<&str> for PythonCompatibilityTag
impl TryFrom<&str> for PythonCompatibilityTag
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