pub struct StableKey(/* private fields */);Expand description
StableKey
Canonical durable logical allocation identity.
A stable key names the logical store, not the current storage backend or
MemoryManager ID. Once committed, the key is permanently bound to its
physical allocation slot; changing the key declares a new logical store.
Implementations§
Source§impl StableKey
impl StableKey
Sourcepub fn parse(value: impl AsRef<str>) -> Result<Self, StableKeyError>
pub fn parse(value: impl AsRef<str>) -> Result<Self, StableKeyError>
Parse and validate a canonical stable key string.
Keys are bounded lowercase ASCII dot-separated names ending in a
nonzero .vN suffix.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consume the key and return the canonical stable-key string.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StableKey
impl<'de> Deserialize<'de> for StableKey
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 Ord for StableKey
impl Ord for StableKey
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 StableKey
impl PartialOrd for StableKey
impl Eq for StableKey
impl StructuralPartialEq for StableKey
Auto Trait Implementations§
impl Freeze for StableKey
impl RefUnwindSafe for StableKey
impl Send for StableKey
impl Sync for StableKey
impl Unpin for StableKey
impl UnsafeUnpin for StableKey
impl UnwindSafe for StableKey
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