[−][src]Struct surf::http::headers::HeaderValues
A list of HeaderValue
s.
This always contains at least one header value.
Implementations
impl HeaderValues
[src]
pub fn append(&mut self, other: &mut HeaderValues)
[src]
Move all values from other
into self
, leaving other
empty.
pub fn get(&self, index: usize) -> Option<&HeaderValue>
[src]
Returns a reference or a value depending on the type of index.
pub fn get_mut(&mut self, index: usize) -> Option<&mut HeaderValue>
[src]
Returns a mutable reference or a value depending on the type of index.
pub fn last(&self) -> &HeaderValue
[src]
Returns the last HeaderValue
.
pub fn iter(&self) -> Values<'_>ⓘNotable traits for Values<'a>
impl<'a> Iterator for Values<'a> type Item = &'a HeaderValue;
[src]
Notable traits for Values<'a>
impl<'a> Iterator for Values<'a> type Item = &'a HeaderValue;
An iterator visiting all header values in arbitrary order.
Methods from Deref<Target = HeaderValue>
Trait Implementations
impl AsMut<HeaderValue> for HeaderValues
[src]
fn as_mut(&mut self) -> &mut HeaderValue
[src]
impl AsRef<HeaderValue> for HeaderValues
[src]
fn as_ref(&self) -> &HeaderValue
[src]
impl Clone for HeaderValues
[src]
fn clone(&self) -> HeaderValues
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for HeaderValues
[src]
impl Deref for HeaderValues
[src]
type Target = HeaderValue
The resulting type after dereferencing.
fn deref(&self) -> &HeaderValue
[src]
impl DerefMut for HeaderValues
[src]
fn deref_mut(&mut self) -> &mut HeaderValue
[src]
impl Display for HeaderValues
[src]
impl From<HeaderValue> for HeaderValues
[src]
fn from(other: HeaderValue) -> HeaderValues
[src]
impl From<HeaderValues> for HeaderValue
[src]
fn from(other: HeaderValues) -> HeaderValue
[src]
impl FromIterator<HeaderValue> for HeaderValues
[src]
fn from_iter<I>(iter: I) -> HeaderValues where
I: IntoIterator<Item = HeaderValue>,
[src]
I: IntoIterator<Item = HeaderValue>,
impl<I> Index<I> for HeaderValues where
I: SliceIndex<[HeaderValue]>,
[src]
I: SliceIndex<[HeaderValue]>,
type Output = <I as SliceIndex<[HeaderValue]>>::Output
The returned type after indexing.
fn index(&self, index: I) -> &<HeaderValues as Index<I>>::Output
[src]
impl<'a> IntoIterator for &'a HeaderValues
[src]
type Item = &'a HeaderValue
The type of the elements being iterated over.
type IntoIter = Values<'a>
Which kind of iterator are we turning this into?
fn into_iter(self) -> <&'a HeaderValues as IntoIterator>::IntoIter
[src]
impl<'a, '_> PartialEq<&'_ String> for HeaderValues
[src]
impl<'a> PartialEq<&'a str> for HeaderValues
[src]
impl<'a> PartialEq<[&'a str]> for HeaderValues
[src]
impl PartialEq<String> for HeaderValues
[src]
impl PartialEq<str> for HeaderValues
[src]
impl<'a> ToHeaderValues for &'a HeaderValues
[src]
type Iter = Cloned<Values<'a>>
Returned iterator over header values which this type may correspond to.
fn to_header_values(
&self
) -> Result<<&'a HeaderValues as ToHeaderValues>::Iter, Error>
[src]
&self
) -> Result<<&'a HeaderValues as ToHeaderValues>::Iter, Error>
Auto Trait Implementations
impl RefUnwindSafe for HeaderValues
impl Send for HeaderValues
impl Sync for HeaderValues
impl Unpin for HeaderValues
impl UnwindSafe for HeaderValues
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,