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