pub struct ScopeId(/* private fields */);Implementations§
Source§impl ScopeId
impl ScopeId
pub fn new() -> Self
Sourcepub fn from_u128(v: u128) -> Self
pub fn from_u128(v: u128) -> Self
Deterministic constructor for tests/fixtures and hosts that need
a stable, reproducible id (e.g. derived from an external key)
rather than Ulid::new()’s wall-clock-derived randomness. The
committed FORMAT.md fixture (tests/format_fixture.rs) relies
on this for byte-stable ids across format-version checks.
Trait Implementations§
impl Copy for ScopeId
Source§impl<'de> Deserialize<'de> for ScopeId
impl<'de> Deserialize<'de> for ScopeId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ScopeId
Canonical Crockford base32 ULID string form (26 chars), delegating
to ulid::Ulid’s Display. Round-trips through FromStr.
impl Display for ScopeId
Canonical Crockford base32 ULID string form (26 chars), delegating
to ulid::Ulid’s Display. Round-trips through FromStr.
impl Eq for ScopeId
Source§impl Ord for ScopeId
impl Ord for ScopeId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ScopeId
impl PartialOrd for ScopeId
impl StructuralPartialEq for ScopeId
Auto Trait Implementations§
impl Freeze for ScopeId
impl RefUnwindSafe for ScopeId
impl Send for ScopeId
impl Sync for ScopeId
impl Unpin for ScopeId
impl UnsafeUnpin for ScopeId
impl UnwindSafe for ScopeId
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