Registry / utility / type-ulid

type-ulid

JSON →
library0.2.0rscratesunverified

Trait for associating ULIDs with Rust types.

# Cargo.toml [dependencies] type_ulid = "0.2.0"
INSTALL
IMPORT
SIG · TYPE-ULID
T
type-ulid
utilityrustv0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TypeUlid
use type_ulid::TypeUlid;

Implement TypeUlid for a custom type to generate ULIDs.

use type_ulid::TypeUlid; struct MyType; impl TypeUlid for MyType { fn ulid() -> ulid::Ulid { ulid::Ulid::new() } } fn main() { let id = MyType::ulid(); println!("ULID: {}", id); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
type-ulid — cargo add type-ulid · libregistry