Trait indextreemap::Key

source ·
pub trait Key: Send + Sync + ToString + FromStr + Debug + Display + Default + Clone + Unpin + Eq + Ord + Hash + Display + 'static {
    // Required method
    fn new(self) -> Self;

    // Provided method
    fn compare_keys(&self, key: &Self) -> Ordering { ... }
}

Required Methods§

source

fn new(self) -> Self

Provided Methods§

source

fn compare_keys(&self, key: &Self) -> Ordering

Implementations on Foreign Types§

source§

impl Key for i64

source§

fn new(self) -> Self

source§

impl Key for u16

source§

fn new(self) -> Self

source§

impl Key for u64

source§

fn new(self) -> Self

source§

impl Key for i32

source§

fn new(self) -> Self

source§

impl Key for i16

source§

fn new(self) -> Self

source§

impl Key for char

source§

fn new(self) -> Self

source§

impl Key for usize

source§

fn new(self) -> Self

source§

impl Key for String

source§

fn new(self) -> Self

source§

impl Key for u128

source§

fn new(self) -> Self

source§

impl Key for i8

source§

fn new(self) -> Self

source§

impl Key for u32

source§

fn new(self) -> Self

source§

impl Key for u8

source§

fn new(self) -> Self

source§

impl Key for i128

source§

fn new(self) -> Self

source§

impl Key for bool

source§

fn new(self) -> Self

Implementors§