Struct PipInstallTarget
pub struct PipInstallTarget(/* private fields */);Implementations§
§impl PipInstallTarget
impl PipInstallTarget
pub 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§
§impl Clone for PipInstallTarget
impl Clone for PipInstallTarget
§fn clone(&self) -> PipInstallTarget
fn clone(&self) -> PipInstallTarget
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 PipInstallTarget
impl Debug for PipInstallTarget
§impl Display for PipInstallTarget
impl Display for PipInstallTarget
§impl FromStr for PipInstallTarget
impl FromStr for PipInstallTarget
§type Err = PipTextError
type Err = PipTextError
The associated error which can be returned from parsing.
§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 more§impl Hash for PipInstallTarget
impl Hash for PipInstallTarget
§impl Ord for PipInstallTarget
impl Ord for PipInstallTarget
§fn cmp(&self, other: &PipInstallTarget) -> Ordering
fn cmp(&self, other: &PipInstallTarget) -> 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 PipInstallTarget
impl PartialEq for PipInstallTarget
§impl PartialOrd for PipInstallTarget
impl PartialOrd for PipInstallTarget
§impl TryFrom<&str> for PipInstallTarget
impl TryFrom<&str> for PipInstallTarget
§type Error = PipTextError
type Error = PipTextError
The type returned in the event of a conversion error.
§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