[−][src]Struct reqwest::header::GetAll
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]
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, 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> 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]
fn into_iter(self) -> ValueIter<'a, T>Creates an iterator from a value. Read more
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]
fn into_iter(self) -> 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]
impl<'a, T> PartialEq<GetAll<'a, T>> for GetAll<'a, T> where
T: PartialEq<T>, Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<I> IntoIterator for I where
I: Iterator, [src]
impl<I> IntoIterator for I where
I: Iterator, type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I[src]
fn into_iter(self) -> ICreates an iterator from a value. Read more
impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 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[src]
impl<T> Erased for T