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§