pub struct HeaderName(/* private fields */);Expand description
This is a newtype wrapping a String in order to handle it
as an Internet message header name.
Names of headers in Internet messages are case insensitive. This type is used to represent those names in such a way that case insensitivity is considered for equality and order.
Trait Implementations§
Source§impl AsRef<str> for HeaderName
impl AsRef<str> for HeaderName
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 · 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
Source§impl Default for HeaderName
impl Default for HeaderName
Source§fn default() -> HeaderName
fn default() -> HeaderName
Returns the “default value” for a type. Read more
Source§impl Display for HeaderName
impl Display for HeaderName
Source§impl From<&str> for HeaderName
impl From<&str> for HeaderName
Source§impl PartialEq<&str> for HeaderName
impl PartialEq<&str> for HeaderName
Source§impl PartialEq<HeaderName> for &str
impl PartialEq<HeaderName> for &str
Source§impl PartialEq for HeaderName
impl PartialEq for HeaderName
Source§impl PartialOrd for HeaderName
impl PartialOrd for HeaderName
impl Eq 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 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