pub struct Ulid(/* private fields */);Expand description
A 128-bit ULID with exact 16-byte storage and canonical uppercase text.
This value has no automatic generator or randomness requirement. Construct
supplied identifiers with Self::from_bytes, Self::from_u128 or parsing.
Implementations§
Trait Implementations§
impl Copy for Ulid
impl Eq for Ulid
Source§impl From<Ulid> for IndexValue<'_>
impl From<Ulid> for IndexValue<'_>
Source§impl Ord for Ulid
impl Ord for Ulid
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 Ulid
impl PartialOrd for Ulid
impl PrimaryKey for Ulid
impl StructuralPartialEq for Ulid
Auto Trait Implementations§
impl Forget for Ulid
impl Freeze for Ulid
impl Move for Ulid
impl RefUnwindSafe for Ulid
impl Send for Ulid
impl Sync for Ulid
impl Unpin for Ulid
impl UnsafeUnpin for Ulid
impl UnwindSafe for Ulid
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