Struct Key
pub struct Key(/* private fields */);Expand description
A key-value store key.
Implementations§
§impl Key
impl Key
pub fn from_segments(segments: impl IntoIterator<Item = impl AsRef<str>>) -> Key
pub fn from_segments(segments: impl IntoIterator<Item = impl AsRef<str>>) -> Key
Builds a key by joining non-empty segments with :.
pub fn with_prefix(prefix: &KeyPrefix, segment: impl AsRef<str>) -> Key
pub fn with_prefix(prefix: &KeyPrefix, segment: impl AsRef<str>) -> Key
Builds a key under a prefix.
Trait Implementations§
§impl Ord for Key
impl Ord for Key
§impl PartialOrd for Key
impl PartialOrd for Key
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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