pub struct UlidId(/* private fields */);Implementations§
Source§impl UlidId
impl UlidId
Sourcepub fn parse(input: &str) -> Result<UlidId, UlidIdError>
pub fn parse(input: &str) -> Result<UlidId, UlidIdError>
Parses a ULID from its canonical string representation.
§Errors
Returns UlidIdError::InvalidFormat when the input is not a valid ULID string.
pub const fn from_ulid(ulid: Ulid) -> UlidId
pub const fn as_ulid(&self) -> &Ulid
pub fn to_canonical(&self) -> String
Trait Implementations§
impl Eq for UlidId
impl StructuralPartialEq for UlidId
Auto Trait Implementations§
impl Freeze for UlidId
impl RefUnwindSafe for UlidId
impl Send for UlidId
impl Sync for UlidId
impl Unpin for UlidId
impl UnsafeUnpin for UlidId
impl UnwindSafe for UlidId
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