pub struct IndexId(/* private fields */);Expand description
An immutable nonzero index-incarnation identity encoded as 32 lower-case hexadecimal characters.
Implementations§
Source§impl IndexId
impl IndexId
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§
impl Copy for IndexId
Source§impl<'de> Deserialize<'de> for IndexId
impl<'de> Deserialize<'de> for IndexId
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
impl Eq for IndexId
Source§impl Ord for IndexId
impl Ord for IndexId
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 PartialOrd for IndexId
impl PartialOrd for IndexId
impl StructuralPartialEq for IndexId
Auto Trait Implementations§
impl Freeze for IndexId
impl RefUnwindSafe for IndexId
impl Send for IndexId
impl Sync for IndexId
impl Unpin for IndexId
impl UnsafeUnpin for IndexId
impl UnwindSafe for IndexId
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