Trait miniconf::Keys

source ·
pub trait Keys {
    // Required methods
    fn next<M: KeyLookup + ?Sized>(&mut self) -> Result<usize, Traversal>;
    fn is_empty(&mut self) -> bool;
}
Expand description

Capability to yield Keys

Required Methods§

source

fn next<M: KeyLookup + ?Sized>(&mut self) -> Result<usize, Traversal>

Look up the next key in a KeyLookup and convert to usize index.

source

fn is_empty(&mut self) -> bool

Return whether there are more keys.

This may mutate and consume remaining keys.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Keys for Packed

source§

impl<T> Keys for T
where T: Iterator, T::Item: Key,