pub struct RegistrationId(/* private fields */);Expand description
Identifies one registration, so it can be withdrawn without disturbing anything else that happens to share the tool’s name.
A name is not enough. register appends, so a name can legitimately be
present more than once, and “remove the tool called X” would then withdraw
whichever copy happened to be first — including one that a different
contributor added.
Implementations§
Trait Implementations§
Source§impl Clone for RegistrationId
impl Clone for RegistrationId
impl Copy for RegistrationId
Source§impl Debug for RegistrationId
impl Debug for RegistrationId
impl Eq for RegistrationId
Source§impl Hash for RegistrationId
impl Hash for RegistrationId
Source§impl Ord for RegistrationId
impl Ord for RegistrationId
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RegistrationId
impl PartialEq for RegistrationId
Source§impl PartialOrd for RegistrationId
impl PartialOrd for RegistrationId
impl StructuralPartialEq for RegistrationId
Auto Trait Implementations§
impl Forget for RegistrationId
impl Freeze for RegistrationId
impl Move for RegistrationId
impl RefUnwindSafe for RegistrationId
impl Send for RegistrationId
impl Sync for RegistrationId
impl Unpin for RegistrationId
impl UnsafeUnpin for RegistrationId
impl UnwindSafe for RegistrationId
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