pub struct Cc(/* private fields */);Expand description
Lightweight Cc header wrapper.
Implementations§
Source§impl Cc
impl Cc
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, HeaderParseError>
pub fn new(value: impl AsRef<str>) -> Result<Self, HeaderParseError>
Creates a typed header wrapper.
Sourcepub const fn value(&self) -> &HeaderValue
pub const fn value(&self) -> &HeaderValue
Returns the header value.
Sourcepub fn field(&self) -> HeaderField
pub fn field(&self) -> HeaderField
Converts this wrapper into a header field.
Trait Implementations§
Source§impl Ord for Cc
impl Ord for Cc
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
Source§impl PartialOrd for Cc
impl PartialOrd for Cc
impl Eq for Cc
impl StructuralPartialEq for Cc
Auto Trait Implementations§
impl Freeze for Cc
impl RefUnwindSafe for Cc
impl Send for Cc
impl Sync for Cc
impl Unpin for Cc
impl UnsafeUnpin for Cc
impl UnwindSafe for Cc
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