pub struct KeyNamespace { /* private fields */ }Expand description
Stable namespace label for a family of keys.
Implementations§
Source§impl KeyNamespace
impl KeyNamespace
Sourcepub fn from_static(value: &'static str) -> Result<Self, KeyLabelError>
pub fn from_static(value: &'static str) -> Result<Self, KeyLabelError>
Creates a namespace from a compile-time allowlisted value.
Trait Implementations§
Source§impl Clone for KeyNamespace
impl Clone for KeyNamespace
Source§fn clone(&self) -> KeyNamespace
fn clone(&self) -> KeyNamespace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KeyNamespace
Source§impl Debug for KeyNamespace
impl Debug for KeyNamespace
impl Eq for KeyNamespace
Source§impl PartialEq for KeyNamespace
impl PartialEq for KeyNamespace
impl StructuralPartialEq for KeyNamespace
Auto Trait Implementations§
impl Freeze for KeyNamespace
impl RefUnwindSafe for KeyNamespace
impl Send for KeyNamespace
impl Sync for KeyNamespace
impl Unpin for KeyNamespace
impl UnsafeUnpin for KeyNamespace
impl UnwindSafe for KeyNamespace
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