ToKey

Trait ToKey 

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

Trait for types that can be converted to a key for grouping operations.

Required Methods§

Source

fn to_key(&self) -> String

Convert the value to a key.

Implementations on Foreign Types§

Source§

impl ToKey for &str

Source§

fn to_key(&self) -> String

Source§

impl ToKey for bool

Source§

fn to_key(&self) -> String

Source§

impl ToKey for f32

Source§

fn to_key(&self) -> String

Source§

impl ToKey for f64

Source§

fn to_key(&self) -> String

Source§

impl ToKey for i32

Source§

fn to_key(&self) -> String

Source§

impl ToKey for i64

Source§

fn to_key(&self) -> String

Source§

impl ToKey for u32

Source§

fn to_key(&self) -> String

Source§

impl ToKey for u64

Source§

fn to_key(&self) -> String

Source§

impl ToKey for String

Source§

fn to_key(&self) -> String

Implementors§