pub struct CollectionId(/* private fields */);Expand description
An immutable nonzero collection namespace encoded as 32 lower-case hexadecimal characters.
Implementations§
Source§impl CollectionId
impl CollectionId
pub fn new(value: u128) -> Result<Self, IdentityError>
pub fn from_be_bytes(bytes: [u8; 16]) -> Result<Self, IdentityError>
pub const fn get(self) -> u128
pub const fn to_be_bytes(self) -> [u8; 16]
pub fn checked_next(self) -> Option<Self>
Trait Implementations§
Source§impl Clone for CollectionId
impl Clone for CollectionId
impl Copy for CollectionId
Source§impl Debug for CollectionId
impl Debug for CollectionId
Source§impl<'de> Deserialize<'de> for CollectionId
impl<'de> Deserialize<'de> for CollectionId
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 Display for CollectionId
impl Display for CollectionId
impl Eq for CollectionId
Source§impl FromStr for CollectionId
impl FromStr for CollectionId
Source§impl Hash for CollectionId
impl Hash for CollectionId
Source§impl Ord for CollectionId
impl Ord for CollectionId
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 CollectionId
impl PartialEq for CollectionId
Source§impl PartialOrd for CollectionId
impl PartialOrd for CollectionId
Source§impl Serialize for CollectionId
impl Serialize for CollectionId
impl StructuralPartialEq for CollectionId
Auto Trait Implementations§
impl Freeze for CollectionId
impl RefUnwindSafe for CollectionId
impl Send for CollectionId
impl Sync for CollectionId
impl Unpin for CollectionId
impl UnsafeUnpin for CollectionId
impl UnwindSafe for CollectionId
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