log::kv

Trait ToKey

Source
pub trait ToKey {
    // Required method
    fn to_key(&self) -> Key<'_>;
}
Expand description

A type that can be converted into a Key.

Required Methods§

Source

fn to_key(&self) -> Key<'_>

Perform the conversion.

Implementations on Foreign Types§

Source§

impl ToKey for str

Source§

fn to_key(&self) -> Key<'_>

Source§

impl ToKey for String

Source§

fn to_key(&self) -> Key<'_>

Source§

impl<'a> ToKey for Cow<'a, str>

Source§

fn to_key(&self) -> Key<'_>

Source§

impl<'a, T> ToKey for &'a T
where T: ToKey + ?Sized,

Source§

fn to_key(&self) -> Key<'_>

Implementors§

Source§

impl<'k> ToKey for Key<'k>