pub struct HeaderName { /* private fields */ }Expand description
A header name.
Implementations§
Source§impl HeaderName
impl HeaderName
Sourcepub const fn from_static(s: &'static str) -> Self
pub const fn from_static(s: &'static str) -> Self
Create a header name from a static str.
Sourcepub const fn from_static_standard(s: &'static str) -> Self
pub const fn from_static_standard(s: &'static str) -> Self
Create a header name from a static str.
Sourcepub fn is_standard(&self) -> bool
pub fn is_standard(&self) -> bool
Get whether the header was defined as a standard HTTP header.
Trait Implementations§
Source§impl Clone for HeaderName
impl Clone for HeaderName
Source§fn clone(&self) -> HeaderName
fn clone(&self) -> HeaderName
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 HeaderName
impl Debug for HeaderName
impl Eq for HeaderName
Source§impl From<&'static str> for HeaderName
impl From<&'static str> for HeaderName
Source§impl From<String> for HeaderName
impl From<String> for HeaderName
Source§impl Hash for HeaderName
impl Hash for HeaderName
Source§impl Ord for HeaderName
impl Ord for HeaderName
Source§fn cmp(&self, other: &HeaderName) -> Ordering
fn cmp(&self, other: &HeaderName) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for HeaderName
impl PartialEq for HeaderName
Source§impl PartialEq<&str> for HeaderName
impl PartialEq<&str> for HeaderName
Source§impl PartialOrd for HeaderName
impl PartialOrd for HeaderName
Auto Trait Implementations§
impl Freeze for HeaderName
impl RefUnwindSafe for HeaderName
impl Send for HeaderName
impl Sync for HeaderName
impl Unpin for HeaderName
impl UnsafeUnpin for HeaderName
impl UnwindSafe for HeaderName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.