pub struct Registry(/* private fields */);Expand description
A registry host label.
Implementations§
Source§impl RegistryHost
impl RegistryHost
Sourcepub fn new(value: impl AsRef<str>) -> Result<RegistryHost, DistributionError>
pub fn new(value: impl AsRef<str>) -> Result<RegistryHost, DistributionError>
Creates a registry host label.
Trait Implementations§
Source§impl Clone for RegistryHost
impl Clone for RegistryHost
Source§fn clone(&self) -> RegistryHost
fn clone(&self) -> RegistryHost
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 RegistryHost
impl Debug for RegistryHost
Source§impl Display for RegistryHost
impl Display for RegistryHost
Source§impl Hash for RegistryHost
impl Hash for RegistryHost
Source§impl Ord for RegistryHost
impl Ord for RegistryHost
Source§fn cmp(&self, other: &RegistryHost) -> Ordering
fn cmp(&self, other: &RegistryHost) -> 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 RegistryHost
impl PartialEq for RegistryHost
Source§fn eq(&self, other: &RegistryHost) -> bool
fn eq(&self, other: &RegistryHost) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RegistryHost
impl PartialOrd for RegistryHost
impl Eq for RegistryHost
impl StructuralPartialEq for RegistryHost
Auto Trait Implementations§
impl Freeze for RegistryHost
impl RefUnwindSafe for RegistryHost
impl Send for RegistryHost
impl Sync for RegistryHost
impl Unpin for RegistryHost
impl UnsafeUnpin for RegistryHost
impl UnwindSafe for RegistryHost
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