pub struct StaticHeaderString(/* private fields */);Implementations§
Source§impl StaticHeaderString
impl StaticHeaderString
pub const fn from_static(value: &'static str) -> Self
pub fn to_header_string(&self) -> HeaderString
pub fn to_header_value(&self) -> HeaderValue
pub fn as_str<'a>(&'a self) -> &'a str
pub fn len(&self) -> usize
Trait Implementations§
Source§impl AsRef<str> for StaticHeaderString
impl AsRef<str> for StaticHeaderString
Source§impl Clone for StaticHeaderString
impl Clone for StaticHeaderString
Source§fn clone(&self) -> StaticHeaderString
fn clone(&self) -> StaticHeaderString
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 moreimpl Copy for StaticHeaderString
Source§impl Debug for StaticHeaderString
impl Debug for StaticHeaderString
Source§impl Display for StaticHeaderString
impl Display for StaticHeaderString
impl Eq for StaticHeaderString
Source§impl From<StaticHeaderString> for &'static str
impl From<StaticHeaderString> for &'static str
Source§fn from(value: StaticHeaderString) -> &'static str
fn from(value: StaticHeaderString) -> &'static str
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StaticHeaderString
impl RefUnwindSafe for StaticHeaderString
impl Send for StaticHeaderString
impl Sync for StaticHeaderString
impl Unpin for StaticHeaderString
impl UnsafeUnpin for StaticHeaderString
impl UnwindSafe for StaticHeaderString
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