Struct http::header::GetAll
[−]
[src]
pub struct GetAll<'a, T: 'a> { /* fields omitted */ }
A view to all values stored in a single entry.
This struct is returned by HeaderMap::get_all
.
Methods
impl<'a, T: 'a> GetAll<'a, T>
[src]
fn iter(&self) -> ValueIter<'a, T>
[src]
Returns an iterator visiting all values associated with the entry.
Values are iterated in insertion order.
Examples
let mut map = HeaderMap::new(); map.insert(HOST, "hello.world".parse().unwrap()); map.append(HOST, "hello.earth".parse().unwrap()); let values = map.get_all("host"); let mut iter = values.iter(); assert_eq!(&"hello.world", iter.next().unwrap()); assert_eq!(&"hello.earth", iter.next().unwrap()); assert!(iter.next().is_none());
Trait Implementations
impl<'a, T: Debug + 'a> Debug for GetAll<'a, T>
[src]
impl<'a, T: PartialEq> PartialEq for GetAll<'a, T>
[src]
fn eq(&self, other: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<'a, T> IntoIterator for GetAll<'a, T>
[src]
type Item = &'a T
The type of the elements being iterated over.
type IntoIter = ValueIter<'a, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> ValueIter<'a, T>
[src]
Creates an iterator from a value. Read more