pub struct HeaderList { /* private fields */ }Implementations§
Source§impl HeaderList
impl HeaderList
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn iter(&self) -> HeaderIter<'_>
pub fn wire_len(&self) -> usize
pub fn get<K>(&self, name: K) -> Option<&HeaderValue>where
K: HeaderNameRef,
pub fn contains_key<K>(&self, name: K) -> boolwhere
K: HeaderNameRef,
pub fn insert<N>(&mut self, name: N, value: HeaderValue) -> Option<HeaderValue>where
N: IntoHeaderName,
pub fn remove<K>(&mut self, name: K) -> Option<HeaderValue>where
K: HeaderNameRef,
Trait Implementations§
Source§impl Clone for HeaderList
impl Clone for HeaderList
Source§fn clone(&self) -> HeaderList
fn clone(&self) -> HeaderList
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HeaderList
impl Debug for HeaderList
Source§impl Default for HeaderList
impl Default for HeaderList
Source§fn default() -> HeaderList
fn default() -> HeaderList
Returns the “default value” for a type. Read more
impl Eq for HeaderList
Source§impl From<Vec<(HeaderName, HeaderValue)>> for HeaderList
impl From<Vec<(HeaderName, HeaderValue)>> for HeaderList
Source§fn from(value: Vec<(HeaderName, HeaderValue)>) -> Self
fn from(value: Vec<(HeaderName, HeaderValue)>) -> Self
Converts to this type from the input type.
Source§impl HeaderLookup for HeaderList
impl HeaderLookup for HeaderList
fn header_value(&self, name: HeaderName) -> Option<&HeaderValue>
fn has_token(&self, name: HeaderName, token: &str) -> bool
fn value_eq_ascii_case(&self, name: HeaderName, expected: &str) -> bool
Source§impl<'a> IntoIterator for &'a HeaderList
impl<'a> IntoIterator for &'a HeaderList
Source§impl PartialEq for HeaderList
impl PartialEq for HeaderList
impl StructuralPartialEq for HeaderList
Auto Trait Implementations§
impl Freeze for HeaderList
impl RefUnwindSafe for HeaderList
impl Send for HeaderList
impl Sync for HeaderList
impl Unpin for HeaderList
impl UnsafeUnpin for HeaderList
impl UnwindSafe for HeaderList
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