[][src]Trait outils::types::Values

pub trait Values<'slf, V, Ix = DefaultIndexType> where
    V: 'slf + ValueType,
    Ix: IndexType
{ fn values(
        &'slf self
    ) -> Box<dyn Iterator<Item = (NodeIndex<Ix>, &'slf V)> + 'slf>; }

Trees implementing this trait are able to return an iterator over the values stored by the implementing struct.

Required methods

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

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

Loading content...

Implementors

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

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

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

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

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

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

impl<'slf, V> Values<'slf, V, usize> for AaForest<V> where
    V: 'slf + ValueType
[src]

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

Returns a boxed iterator over the stored values and their corresponding tree node indices held by self. The values are not returned in any particular order.

impl<'slf, V> Values<'slf, V, usize> for Forest<V> where
    V: 'slf + ValueType
[src]

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

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

impl<'slf, V, W> Values<'slf, V, usize> for WeightedAaForest<V, W> where
    V: 'slf + ValueType,
    W: WeightType
[src]

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

Returns a boxed iterator over the stored values and their corresponding tree node indices held by self. The values are not returned in any particular order.

Loading content...