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§
Source§impl Ord for LabeledId
impl Ord for LabeledId
Source§impl PartialOrd for LabeledId
impl PartialOrd for LabeledId
impl Copy for LabeledId
impl Eq 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 UnwindSafe for LabeledId
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)