Struct safe_http::header_values::HeaderValues
source · [−]pub struct HeaderValues { /* private fields */ }
Implementations
sourceimpl HeaderValues
impl HeaderValues
pub fn new(first: HeaderValue) -> Self
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<'_>ⓘNotable traits for Iter<'r>impl<'r> Iterator for Iter<'r> type Item = &'r HeaderValue;
pub fn iter_mut(&mut self) -> IterMut<'_>ⓘNotable traits for IterMut<'r>impl<'r> Iterator for IterMut<'r> type Item = &'r mut HeaderValue;
Trait Implementations
sourceimpl Clone for HeaderValues
impl Clone for HeaderValues
sourcefn clone(&self) -> HeaderValues
fn clone(&self) -> HeaderValues
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HeaderValues
impl Debug for HeaderValues
sourceimpl Extend<HeaderValue> for HeaderValues
impl Extend<HeaderValue> for HeaderValues
sourcefn extend<T: IntoIterator<Item = HeaderValue>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = HeaderValue>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
sourcefn 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.
sourcefn 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
sourceimpl From<HeaderValue> for HeaderValues
impl From<HeaderValue> for HeaderValues
sourcefn from(v: HeaderValue) -> Self
fn from(v: HeaderValue) -> Self
Performs the conversion.
sourceimpl Hash for HeaderValues
impl Hash for HeaderValues
sourceimpl IntoIterator for HeaderValues
impl IntoIterator for HeaderValues
sourceimpl<'r> IntoIterator for &'r HeaderValues
impl<'r> IntoIterator for &'r HeaderValues
sourceimpl PartialEq<HeaderValues> for HeaderValues
impl PartialEq<HeaderValues> for HeaderValues
sourcefn eq(&self, other: &HeaderValues) -> bool
fn eq(&self, other: &HeaderValues) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HeaderValues) -> bool
fn ne(&self, other: &HeaderValues) -> bool
This method tests for !=
.
impl Eq for HeaderValues
impl StructuralEq for HeaderValues
impl StructuralPartialEq for HeaderValues
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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more