pub struct HeaderName { /* private fields */ }Expand description
A header name that preserves its original ASCII casing while comparing case-insensitively.
Implementations§
Source§impl HeaderName
impl HeaderName
Sourcepub const fn new_static(original: &'static str, lower: &'static str) -> Self
pub const fn new_static(original: &'static str, lower: &'static str) -> Self
Construct a header name from a 'static original/lowercase pair.
Both arguments must agree byte-for-byte modulo ASCII case. Use this for
the entries in crate::keys.
Trait Implementations§
Source§impl AsHeaderName for HeaderName
impl AsHeaderName for HeaderName
Source§impl AsHeaderName for &HeaderName
impl AsHeaderName 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 (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
Source§impl<'de> Deserialize<'de> for HeaderName
impl<'de> Deserialize<'de> for HeaderName
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for HeaderName
impl Display for HeaderName
impl Eq for HeaderName
Source§impl From<&HeaderName> for HeaderName
impl From<&HeaderName> for HeaderName
Source§fn from(value: &HeaderName) -> Self
fn from(value: &HeaderName) -> Self
Converts to this type from the input type.
Source§impl From<&str> for HeaderName
impl From<&str> for HeaderName
Source§impl From<SmolStr> for HeaderName
impl From<SmolStr> for HeaderName
Source§impl From<String> for HeaderName
impl From<String> for HeaderName
Source§impl Hash for HeaderName
impl Hash for HeaderName
Source§impl PartialEq for HeaderName
impl PartialEq 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