pub struct PipPackageSpec(/* private fields */);Implementations§
Source§impl PipPackageSpec
impl PipPackageSpec
Sourcepub fn new(input: &str) -> Result<Self, PipTextError>
pub fn new(input: &str) -> Result<Self, PipTextError>
Creates non-empty pip metadata text.
§Errors
Returns PipTextError::Empty when input is empty after trimming.
Trait Implementations§
Source§impl Clone for PipPackageSpec
impl Clone for PipPackageSpec
Source§fn clone(&self) -> PipPackageSpec
fn clone(&self) -> PipPackageSpec
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 moreSource§impl Debug for PipPackageSpec
impl Debug for PipPackageSpec
Source§impl Display for PipPackageSpec
impl Display for PipPackageSpec
Source§impl FromStr for PipPackageSpec
impl FromStr for PipPackageSpec
Source§impl Hash for PipPackageSpec
impl Hash for PipPackageSpec
Source§impl Ord for PipPackageSpec
impl Ord for PipPackageSpec
Source§fn cmp(&self, other: &PipPackageSpec) -> Ordering
fn cmp(&self, other: &PipPackageSpec) -> 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
Source§impl PartialEq for PipPackageSpec
impl PartialEq for PipPackageSpec
Source§impl PartialOrd for PipPackageSpec
impl PartialOrd for PipPackageSpec
Source§impl TryFrom<&str> for PipPackageSpec
impl TryFrom<&str> for PipPackageSpec
impl Eq for PipPackageSpec
impl StructuralPartialEq for PipPackageSpec
Auto Trait Implementations§
impl Freeze for PipPackageSpec
impl RefUnwindSafe for PipPackageSpec
impl Send for PipPackageSpec
impl Sync for PipPackageSpec
impl Unpin for PipPackageSpec
impl UnsafeUnpin for PipPackageSpec
impl UnwindSafe for PipPackageSpec
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