pub struct PipIndexUrl(/* private fields */);Expand description
pip package index URL metadata.
Implementations§
Source§impl PipIndexUrl
impl PipIndexUrl
Sourcepub fn new(input: &str) -> Result<Self, PipTextError>
pub fn new(input: &str) -> Result<Self, PipTextError>
Creates index URL metadata.
§Errors
Returns PipTextError when input is empty, contains whitespace, or is not HTTP(S)-shaped.
Trait Implementations§
Source§impl Clone for PipIndexUrl
impl Clone for PipIndexUrl
Source§fn clone(&self) -> PipIndexUrl
fn clone(&self) -> PipIndexUrl
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 PipIndexUrl
impl Debug for PipIndexUrl
Source§impl Display for PipIndexUrl
impl Display for PipIndexUrl
Source§impl Hash for PipIndexUrl
impl Hash for PipIndexUrl
Source§impl Ord for PipIndexUrl
impl Ord for PipIndexUrl
Source§fn cmp(&self, other: &PipIndexUrl) -> Ordering
fn cmp(&self, other: &PipIndexUrl) -> 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 PipIndexUrl
impl PartialEq for PipIndexUrl
Source§fn eq(&self, other: &PipIndexUrl) -> bool
fn eq(&self, other: &PipIndexUrl) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PipIndexUrl
impl PartialOrd for PipIndexUrl
impl Eq for PipIndexUrl
impl StructuralPartialEq for PipIndexUrl
Auto Trait Implementations§
impl Freeze for PipIndexUrl
impl RefUnwindSafe for PipIndexUrl
impl Send for PipIndexUrl
impl Sync for PipIndexUrl
impl Unpin for PipIndexUrl
impl UnsafeUnpin for PipIndexUrl
impl UnwindSafe for PipIndexUrl
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