[][src]Trait outils::types::Keys

pub trait Keys<'slf, K, Ix = DefaultIndexType> where
    K: 'slf + KeyType,
    Ix: IndexType
{ fn keys(
        &'slf self
    ) -> Box<dyn Iterator<Item = (NodeIndex<Ix>, &'slf K)> + 'slf>; }

Trees implementing this trait are able to return an iterator over the search keys held by the implementing struct.

Required methods

fn keys(&'slf self) -> Box<dyn Iterator<Item = (NodeIndex<Ix>, &'slf K)> + 'slf>

Returns a boxed iterator over the search keys and their corresponding tree node indices held by self.

Loading content...

Implementors

impl<'slf, K, V> Keys<'slf, K, usize> for AaTree<K, V> where
    K: 'slf + KeyType,
    V: ValueType
[src]

fn keys(&'slf self) -> Box<dyn Iterator<Item = (NodeIndex, &'slf K)> + 'slf>[src]

Returns a boxed iterator over the search keys and their corresponding tree node indices held by self. The keys are returned in the order of the search keys.

impl<'slf, K, V, W> Keys<'slf, K, usize> for WeightedAaTree<K, V, W> where
    K: 'slf + KeyType,
    V: ValueType,
    W: WeightType
[src]

fn keys(&'slf self) -> Box<dyn Iterator<Item = (NodeIndex, &'slf K)> + 'slf>[src]

Returns a boxed iterator over the search keys and their corresponding tree node indices held by self. The keys are returned in the order of the search keys.

Loading content...