Trait Values

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

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

Required Methods§

Source

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.

Implementors§

Source§

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

Source§

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

Source§

impl<'slf, V> Values<'slf, V> for AaForest<V>
where V: 'slf + ValueType,

Source§

impl<'slf, V> Values<'slf, V> for Forest<V>
where V: 'slf + ValueType,

Source§

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