Struct tauri::http::header::GetAll
x3A;:header::GetAll,
pub struct GetAll<'a, T> { /* fields omitted */ }
Expand description
A view to all values stored in a single entry.
This struct is returned by HeaderMap::get_all
.
#
ImplementationsGetAll<'a, T> where T: 'a,[src]#
impl<'a, T>iter(&self) -> ValueIter<'a, T>ⓘNotable traits for ValueIter<'a, T>impl<'a, T> Iterator for ValueIter<'a, T> where T: 'a,type Item = &'aT;
[src]#
pub fn Returns an iterator visiting all values associated with the entry.
Values are iterated in insertion order.
#
Exampleslet 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 ImplementationsDebug for GetAll<'a, T> where T: Debug,[src]#
impl<'a, T>fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]#
pub fnFormats the value using the given formatter. Read more
IntoIterator for GetAll<'a, T>[src]#
impl<'a, T>Item = &'aT#
typeThe type of the elements being iterated over.
IntoIter = ValueIter<'a, T>#
typeWhich kind of iterator are we turning this into?
into_iter(self) -> ValueIter<'a, T>ⓘNotable traits for ValueIter<'a, T>impl<'a, T> Iterator for ValueIter<'a, T> where T: 'a,type Item = &'aT;
[src]#
pub fn Creates an iterator from a value. Read more
IntoIterator for &'b GetAll<'a, T> where 'b: 'a,[src]#
impl<'a, 'b, T>Item = &'aT#
typeThe type of the elements being iterated over.
IntoIter = ValueIter<'a, T>#
typeWhich kind of iterator are we turning this into?
into_iter(self) -> ValueIter<'a, T>ⓘNotable traits for ValueIter<'a, T>impl<'a, T> Iterator for ValueIter<'a, T> where T: 'a,type Item = &'aT;
[src]#
pub fn Creates an iterator from a value. Read more
PartialEq<GetAll<'a, T>> for GetAll<'a, T> where T: PartialEq<T>,[src]#
impl<'a, T>eq(&self, other: &GetAll<'a, T>) -> bool[src]#
pub fnThis method tests for self
and other
values to be equal, and is used by ==
. Read more
ne(&self, other: &Rhs) -> bool1.0.0[src]#
#[must_use]fnThis method tests for !=
.
#
Auto Trait ImplementationsRefUnwindSafe for GetAll<'a, T> where T: RefUnwindSafe,#
impl<'a, T>Send for GetAll<'a, T> where T: Sync,#
impl<'a, T>Sync for GetAll<'a, T> where T: Sync,#
impl<'a, T>Unpin for GetAll<'a, T>#
impl<'a, T>UnwindSafe for GetAll<'a, T> where T: RefUnwindSafe,#
impl<'a, T>#
Blanket ImplementationsAny for T where T: 'static + ?Sized,[src]#
impl<T>type_id(&self) -> TypeId[src]#
pub fnGets the TypeId
of self
. Read more
Borrow<T> for T where T: ?Sized,[src]#
impl<T>borrow(&self) -> &T[src]#
pub fnImmutably borrows from an owned value. Read more
BorrowMut<T> for T where T: ?Sized,[src]#
impl<T>borrow_mut(&mut self) -> &mutT[src]#
pub fnMutably borrows from an owned value. Read more
From<T> for T[src]#
impl<T>from(t: T) -> T[src]#
pub fnPerforms the conversion.
Into<U> for T where U: From<T>,[src]#
impl<T, U>into(self) -> U[src]#
pub fnPerforms the conversion.
TryFrom<U> for T where U: Into<T>,[src]#
impl<T, U>Error = Infallible#
typeThe type returned in the event of a conversion error.
try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]#
pub fnPerforms the conversion.
TryInto<U> for T where U: TryFrom<T>,[src]#
impl<T, U>Error = <U as TryFrom<T>>::Error#
typeThe type returned in the event of a conversion error.
try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]#
pub fnPerforms the conversion.