pub struct NoKey(/* private fields */);Expand description
Represents a path component without a key. This is useful when the container only ever holds a single key, which is the case for any 1-tuple struct.
For an example usage, see the implementation of Inner for Option.
Trait Implementations§
Source§impl PathComponentKind for NoKey
impl PathComponentKind for NoKey
fn component_kind() -> Kind
Auto Trait Implementations§
impl Freeze for NoKey
impl RefUnwindSafe for NoKey
impl Send for NoKey
impl Sync for NoKey
impl Unpin for NoKey
impl UnwindSafe for NoKey
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
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more