Struct log::kv::Key[][src]

pub struct Key<'k> { /* fields omitted */ }

A key in a structured key-value pair.

Implementations

impl<'k> Key<'k>[src]

pub fn from_str(key: &'k str) -> Self[src]

Get a key from a borrowed string.

pub fn as_str(&self) -> &str[src]

Get a borrowed string from this key.

Trait Implementations

impl<'k> AsRef<str> for Key<'k>[src]

impl<'k> Borrow<str> for Key<'k>[src]

impl<'k> Clone for Key<'k>[src]

impl<'k> Debug for Key<'k>[src]

impl<'k> Display for Key<'k>[src]

impl<'k> Eq for Key<'k>[src]

impl<'k> From<&'k str> for Key<'k>[src]

impl<'k> Hash for Key<'k>[src]

impl<'k> Ord for Key<'k>[src]

impl<'k, 'ko> PartialEq<Key<'ko>> for Key<'k>[src]

impl<'k, 'ko> PartialOrd<Key<'ko>> for Key<'k>[src]

impl<'k> ToKey for Key<'k>[src]

Auto Trait Implementations

impl<'k> RefUnwindSafe for Key<'k>

impl<'k> Send for Key<'k>

impl<'k> Sync for Key<'k>

impl<'k> Unpin for Key<'k>

impl<'k> UnwindSafe for Key<'k>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.