Struct Values
pub struct Values<'a, K: 'a, V: 'a> { pub(in ::collections::hash::map) inner: Iter<'a, K, V> }
An iterator over the values of a HashMap.
This struct is created by the values method on HashMap. See its
documentation for more.
Example
use std::collections::HashMap;
let map = HashMap::from([
("a", 1),
]);
let iter_values = map.values();
Fields
inner: Iter<'a, K, V>
Trait Implementations
impl<'a, K, V> Iterator for Values<'a, K, V>
type Item = &'a V;fn next(&mut self) -> Option<&'a V>fn size_hint(&self) -> (usize, Option<usize>)fn count(self) -> usizefn fold<B, F>(self, init: B, f: F) -> B where Self: Sized, F: FnMut(B, Self::Item) -> B,
impl<K, V> Clone for Values<'_, K, V>
fn clone(&self) -> Self
impl<K, V> Default for Values<'_, K, V>
fn default() -> Self
impl<K, V> ExactSizeIterator for Values<'_, K, V>
fn len(&self) -> usize
impl<K, V> FusedIterator for Values<'_, K, V>
impl<K, V: Debug> Debug for Values<'_, K, V>
fn fmt(&self, f: &mut Formatter<'_>) -> Result