# 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]

####
ⓘImportant traits for ValueIter<'a, T>

### Important traits for ValueIter<'a, T>

`impl<'a, T> Iterator for ValueIter<'a, T> where
T: 'a, type Item = &'a T;`

`pub 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, 'b, T> IntoIterator for &'b GetAll<'a, T> where 'b: 'a,`

[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?

####
ⓘImportant traits for ValueIter<'a, T>

### Important traits for ValueIter<'a, T>

`impl<'a, T> Iterator for ValueIter<'a, T> where
T: 'a, type Item = &'a T;`

`fn into_iter(self) -> ValueIter<'a, T>`

[src]

Creates an iterator from a value. Read more

###

`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?

####
ⓘImportant traits for ValueIter<'a, T>

### Important traits for ValueIter<'a, T>

`impl<'a, T> Iterator for ValueIter<'a, T> where
T: 'a, type Item = &'a T;`

`fn into_iter(self) -> ValueIter<'a, T>`

[src]

Creates an iterator from a value. Read more

###

`impl<'a, T> Debug for GetAll<'a, T> where T: 'a + Debug,`

[src]

####

`fn fmt(&self, f: &mut Formatter) -> Result<(), Error>`

[src]

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]

####

`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

####

`#[must_use] fn ne(&self, other: &Rhs) -> bool`

1.0.0
[src]

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,`

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g. `str,u8` or `String,struct:Vec,test`)