pub struct ID(/* private fields */);
Expand description
A 32-bit numeric ID that cannot be zero or negative.
This type is usually used for specifying a unique identification number.
Implementations§
Trait Implementations§
Source§impl AsMut<NonZero<u32>> for ID
impl AsMut<NonZero<u32>> for ID
Source§fn as_mut(&mut self) -> &mut NonZeroU32
fn as_mut(&mut self) -> &mut NonZeroU32
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<NonZero<u32>> for ID
impl AsRef<NonZero<u32>> for ID
Source§fn as_ref(&self) -> &NonZeroU32
fn as_ref(&self) -> &NonZeroU32
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'de> Deserialize<'de> for ID
impl<'de> Deserialize<'de> for ID
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ID> for NonZeroU32
impl From<ID> for NonZeroU32
Source§impl From<NonZero<u32>> for ID
impl From<NonZero<u32>> for ID
Source§fn from(original: NonZeroU32) -> ID
fn from(original: NonZeroU32) -> ID
Converts to this type from the input type.
Source§impl Ord for ID
impl Ord for ID
Source§impl PartialOrd<ID> for u32
impl PartialOrd<ID> for u32
Source§impl PartialOrd<u32> for ID
impl PartialOrd<u32> for ID
Source§impl PartialOrd for ID
impl PartialOrd for ID
impl Copy for ID
impl Eq for ID
impl StructuralPartialEq for ID
Auto Trait Implementations§
impl Freeze for ID
impl RefUnwindSafe for ID
impl Send for ID
impl Sync for ID
impl Unpin for ID
impl UnwindSafe for ID
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.