miniconf

Trait Key

Source
pub trait Key {
    // Required method
    fn find(&self, lookup: &KeyLookup) -> Result<usize, Traversal>;
}
Expand description

Convert a &str key into a node index on a KeyLookup

Required Methods§

Source

fn find(&self, lookup: &KeyLookup) -> Result<usize, Traversal>

Convert the key self to a usize index

Implementations on Foreign Types§

Source§

impl Key for i8

Source§

fn find(&self, lookup: &KeyLookup) -> Result<usize, Traversal>

Source§

impl Key for i16

Source§

fn find(&self, lookup: &KeyLookup) -> Result<usize, Traversal>

Source§

impl Key for i32

Source§

fn find(&self, lookup: &KeyLookup) -> Result<usize, Traversal>

Source§

impl Key for i64

Source§

fn find(&self, lookup: &KeyLookup) -> Result<usize, Traversal>

Source§

impl Key for i128

Source§

fn find(&self, lookup: &KeyLookup) -> Result<usize, Traversal>

Source§

impl Key for isize

Source§

fn find(&self, lookup: &KeyLookup) -> Result<usize, Traversal>

Source§

impl Key for str

Source§

fn find(&self, lookup: &KeyLookup) -> Result<usize, Traversal>

Source§

impl Key for u8

Source§

fn find(&self, lookup: &KeyLookup) -> Result<usize, Traversal>

Source§

impl Key for u16

Source§

fn find(&self, lookup: &KeyLookup) -> Result<usize, Traversal>

Source§

impl Key for u32

Source§

fn find(&self, lookup: &KeyLookup) -> Result<usize, Traversal>

Source§

impl Key for u64

Source§

fn find(&self, lookup: &KeyLookup) -> Result<usize, Traversal>

Source§

impl Key for u128

Source§

fn find(&self, lookup: &KeyLookup) -> Result<usize, Traversal>

Source§

impl Key for usize

Source§

fn find(&self, lookup: &KeyLookup) -> Result<usize, Traversal>

Source§

impl<T> Key for &T
where T: Key + ?Sized,

Source§

fn find(&self, lookup: &KeyLookup) -> Result<usize, Traversal>

Source§

impl<T> Key for &mut T
where T: Key + ?Sized,

Source§

fn find(&self, lookup: &KeyLookup) -> Result<usize, Traversal>

Implementors§