pub struct GetAll<'a> { /* private fields */ }
Expand description
A view to all values stored in a single entry.
This struct is returned by HeaderMap::get_all
.
Implementations
sourceimpl<'a> GetAll<'a>
impl<'a> GetAll<'a>
sourcepub fn iter(&self) -> ValueIter<'a>ⓘNotable traits for ValueIter<'a>impl<'a> Iterator for ValueIter<'a> type Item = &'a String;
pub fn iter(&self) -> ValueIter<'a>ⓘNotable traits for ValueIter<'a>impl<'a> Iterator for ValueIter<'a> type Item = &'a String;
Returns an iterator visiting all values associated with the entry.
The values are iterated on in an arbitrary but deterministic order.
Examples
let mut map = HeaderMap::new();
map.insert(STATUS, "hello");
map.append(STATUS, "goodbye");
let values = map.get_all(STATUS);
// Will print in an arbitrary order.
for x in values {
println!("{}", x);
}
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for GetAll<'a>
impl<'a> Send for GetAll<'a>
impl<'a> Sync for GetAll<'a>
impl<'a> Unpin for GetAll<'a>
impl<'a> UnwindSafe for GetAll<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more