pub struct LabeledId { /* private fields */ }Expand description
Implementations§
Source§impl LabeledId
impl LabeledId
Sourcepub fn new(prefix: &str) -> Result<Self, LabeledIdCreateError>
pub fn new(prefix: &str) -> Result<Self, LabeledIdCreateError>
Create a new labeled ID with the given prefix.
Sourcepub fn new_with_ulid(
prefix: &str,
ulid: Ulid,
) -> Result<Self, LabeledIdCreateError>
pub fn new_with_ulid( prefix: &str, ulid: Ulid, ) -> Result<Self, LabeledIdCreateError>
Create a new labeled ID with the given prefix and ULID.
Trait Implementations§
impl Copy for LabeledId
impl Eq for LabeledId
Source§impl Ord for LabeledId
impl Ord for LabeledId
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 LabeledId
impl PartialOrd for LabeledId
impl StructuralPartialEq for LabeledId
Auto Trait Implementations§
impl Freeze for LabeledId
impl RefUnwindSafe for LabeledId
impl Send for LabeledId
impl Sync for LabeledId
impl Unpin for LabeledId
impl UnsafeUnpin for LabeledId
impl UnwindSafe for LabeledId
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