Struct actix_web::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]
impl<'a, T> GetAll<'a, T> where
T: 'a,
ⓘImportant traits for ValueIter<'a, T>pub fn iter(&self) -> ValueIter<'a, T>
[src]
ⓘImportant traits for ValueIter<'a, T>
pub fn iter(&self) -> ValueIter<'a, T>
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, 'b, T> IntoIterator for &'b GetAll<'a, T> where
'b: 'a,
[src]
impl<'a, 'b, T> IntoIterator for &'b GetAll<'a, T> where
'b: 'a,
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?
ⓘImportant traits for ValueIter<'a, T>fn into_iter(self) -> ValueIter<'a, T>
[src]
ⓘImportant traits for ValueIter<'a, T>
fn into_iter(self) -> ValueIter<'a, T>
Creates an iterator from a value. Read more
impl<'a, T> IntoIterator for GetAll<'a, T>
[src]
impl<'a, T> IntoIterator for GetAll<'a, T>
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?
ⓘImportant traits for ValueIter<'a, T>fn into_iter(self) -> ValueIter<'a, T>
[src]
ⓘImportant traits for ValueIter<'a, T>
fn into_iter(self) -> ValueIter<'a, T>
Creates an iterator from a value. Read more
impl<'a, T> Debug for GetAll<'a, T> where
T: 'a + Debug,
[src]
impl<'a, T> Debug for GetAll<'a, T> where
T: 'a + Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<'a, T> PartialEq<GetAll<'a, T>> for GetAll<'a, T> where
T: PartialEq<T>,
[src]
impl<'a, T> PartialEq<GetAll<'a, T>> for GetAll<'a, T> where
T: PartialEq<T>,