pub struct KeyName(/* private fields */);Expand description
Name component of a key.
Implementations§
Source§impl KeyName
impl KeyName
Sourcepub const fn from_const_str(name: &'static str) -> Self
pub const fn from_const_str(name: &'static str) -> Self
Creates a KeyName from a static string.
Sourcepub fn into_inner(self) -> SharedString
pub fn into_inner(self) -> SharedString
Consumes this KeyName, returning the inner SharedString.
Trait Implementations§
Source§impl Ord for KeyName
impl Ord for KeyName
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 KeyName
impl PartialOrd for KeyName
impl Eq for KeyName
impl StructuralPartialEq for KeyName
Auto Trait Implementations§
impl Freeze for KeyName
impl RefUnwindSafe for KeyName
impl Send for KeyName
impl Sync for KeyName
impl Unpin for KeyName
impl UnsafeUnpin for KeyName
impl UnwindSafe for KeyName
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