pub struct HeaderValues { /* private fields */ }
Implementations§
Source§impl HeaderValues
impl HeaderValues
pub fn new(first: HeaderValue) -> HeaderValues
pub fn has_only_one(&self) -> bool
pub fn push(&mut self, v: HeaderValue)
pub fn first(&self) -> &HeaderValue
pub fn first_mut(&mut self) -> &mut HeaderValue
pub fn into_first(self) -> HeaderValue
pub fn iter(&self) -> Iter<'_> ⓘ
pub fn iter_mut(&mut self) -> IterMut<'_> ⓘ
Trait Implementations§
Source§impl Clone for HeaderValues
impl Clone for HeaderValues
Source§fn clone(&self) -> HeaderValues
fn clone(&self) -> HeaderValues
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HeaderValues
impl Debug for HeaderValues
Source§impl Extend<HeaderValue> for HeaderValues
impl Extend<HeaderValue> for HeaderValues
Source§fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = HeaderValue>,
fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = HeaderValue>,
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl From<HeaderValue> for HeaderValues
impl From<HeaderValue> for HeaderValues
Source§fn from(v: HeaderValue) -> HeaderValues
fn from(v: HeaderValue) -> HeaderValues
Converts to this type from the input type.
Source§impl Hash for HeaderValues
impl Hash for HeaderValues
Source§impl<'r> IntoIterator for &'r HeaderValues
impl<'r> IntoIterator for &'r HeaderValues
Source§type Item = &'r HeaderValue
type Item = &'r HeaderValue
The type of the elements being iterated over.
Source§fn into_iter(self) -> <&'r HeaderValues as IntoIterator>::IntoIter
fn into_iter(self) -> <&'r HeaderValues as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Source§impl IntoIterator for HeaderValues
impl IntoIterator for HeaderValues
Source§type Item = HeaderValue
type Item = HeaderValue
The type of the elements being iterated over.
Source§fn into_iter(self) -> <HeaderValues as IntoIterator>::IntoIter
fn into_iter(self) -> <HeaderValues as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Source§impl PartialEq for HeaderValues
impl PartialEq for HeaderValues
impl Eq for HeaderValues
impl StructuralPartialEq for HeaderValues
Auto Trait Implementations§
impl Freeze for HeaderValues
impl RefUnwindSafe for HeaderValues
impl Send for HeaderValues
impl Sync for HeaderValues
impl Unpin for HeaderValues
impl UnwindSafe for HeaderValues
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more