usecrate::prelude::*;pubuseulid::Ulid;/// Extension trait for [`Ulid`].
pubtraitUlidExt{/// Constructor that) is the same as [`Ulid::new()`], but that works on WASM, too using the
/// [`instant`] crate.
fncreate()->Self;}implUlidExt forUlid{fncreate()->Self{Ulid::from_parts(instant::now().floor()asu64,THREAD_RNG.with(|rng|rng.gen_u128()),)}}