[][src]Struct actix_web::http::header::GetAll

pub struct GetAll<'a, T> where
    T: 'a + '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]

Important traits for 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, T> Debug for GetAll<'a, T> where
    T: 'a + Debug
[src]

Formats the value using the given formatter. Read more

impl<'a, 'b, T> IntoIterator for &'b GetAll<'a, T> where
    'b: 'a, 
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Important traits for ValueIter<'a, T>

Creates an iterator from a value. Read more

impl<'a, T> IntoIterator for GetAll<'a, T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Important traits for ValueIter<'a, T>

Creates an iterator from a value. Read more

impl<'a, T> PartialEq<GetAll<'a, T>> for GetAll<'a, T> where
    T: PartialEq<T>, 
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl<'a, T> Send for GetAll<'a, T> where
    T: Sync

impl<'a, T> Sync for GetAll<'a, T> where
    T: Sync

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<I> IntoIterator for I where
    I: Iterator
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Erased for T