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