pub struct HeaderName(/* private fields */);
Implementations§
source§impl HeaderName
impl HeaderName
pub fn from_static(s: &'static str) -> Self
pub fn from_string(s: String) -> Self
pub fn from_checked_static(s: &'static str) -> Result<Self, InvalidHeaderName>
pub fn from_checked_string(s: String) -> Result<Self, InvalidHeaderName>
pub fn as_str(&self) -> &str
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 copy 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 Display for HeaderName
impl Display for HeaderName
source§impl Hash for HeaderName
impl Hash for HeaderName
source§impl<'a> PartialEq<&'a String> for HeaderName
impl<'a> PartialEq<&'a String> for HeaderName
source§impl<'a> PartialEq<&'a str> for HeaderName
impl<'a> PartialEq<&'a str> for HeaderName
source§impl PartialEq for HeaderName
impl PartialEq for HeaderName
source§impl TryFrom<&'static str> for HeaderName
impl TryFrom<&'static str> for HeaderName
source§type Error = InvalidHeaderName
type Error = InvalidHeaderName
The type returned in the event of a conversion error.
source§impl TryFrom<String> for HeaderName
impl TryFrom<String> for HeaderName
source§type Error = InvalidHeaderName
type Error = InvalidHeaderName
The type returned in the event of a conversion error.
impl<'a> AsHeaderName for &'a HeaderName
impl AsHeaderName 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)