TypeUlid

Trait TypeUlid 

Source
pub trait TypeUlid {
    const ULID: Ulid;
}
Expand description

Associates a Ulid ID to a Rust type.

⚠️ Warning: there is nothing enforcing that the Ulids returned by different types will be different.

Required Associated Constants§

Source

const ULID: Ulid

The type’s Ulid.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TypeUlid for char

Source§

impl TypeUlid for i8

Source§

impl TypeUlid for i16

Source§

impl TypeUlid for i32

Source§

impl TypeUlid for i64

Source§

impl TypeUlid for i128

Source§

impl TypeUlid for str

Source§

impl TypeUlid for u8

Source§

impl TypeUlid for u16

Source§

impl TypeUlid for u32

Source§

impl TypeUlid for u64

Source§

impl TypeUlid for u128

Source§

impl TypeUlid for ()

Source§

impl TypeUlid for CString

Source§

impl TypeUlid for String

Source§

impl TypeUlid for CStr

Source§

impl TypeUlid for Duration

Source§

impl TypeUlid for OsStr

Source§

impl TypeUlid for OsString

Source§

impl TypeUlid for Path

Source§

impl TypeUlid for PathBuf

Implementors§