Trait miniconf::Key

source ·
pub trait Key {
    // Required method
    fn find<M: KeyLookup + ?Sized>(&self) -> Option<usize>;
}
Expand description

Capability to convert a key into a node index for a given M: TreeKey

Required Methods§

source

fn find<M: KeyLookup + ?Sized>(&self) -> Option<usize>

Convert the key self to a usize index

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Key for &str

source§

fn find<M: KeyLookup + ?Sized>(&self) -> Option<usize>

source§

impl Key for usize

source§

fn find<M: KeyLookup + ?Sized>(&self) -> Option<usize>

Implementors§