Struct mini_http::header::GetAll
[−]
[src]
pub struct GetAll<'a, T> where
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> GetAll<'a, T> where
T: 'a,
[src]
T: 'a,
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> PartialEq<GetAll<'a, T>> for GetAll<'a, T> where
T: PartialEq<T>,
[src]
T: PartialEq<T>,
fn eq(&self, other: &GetAll<'a, T>) -> 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> Debug for GetAll<'a, T> where
T: 'a + Debug,
[src]
T: 'a + Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<'a, 'b, T> IntoIterator for &'b GetAll<'a, T> where
'b: 'a,
[src]
'b: 'a,