Trait log::kv::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>