pub struct ContentTransferEncoding(/* private fields */);Expand description
Lightweight Content-Transfer-Encoding header wrapper.
Implementations§
Source§impl ContentTransferEncoding
impl ContentTransferEncoding
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 Clone for ContentTransferEncoding
impl Clone for ContentTransferEncoding
Source§fn clone(&self) -> ContentTransferEncoding
fn clone(&self) -> ContentTransferEncoding
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 ContentTransferEncoding
impl Debug for ContentTransferEncoding
Source§impl Display for ContentTransferEncoding
impl Display for ContentTransferEncoding
Source§impl Hash for ContentTransferEncoding
impl Hash for ContentTransferEncoding
Source§impl Ord for ContentTransferEncoding
impl Ord for ContentTransferEncoding
Source§fn cmp(&self, other: &ContentTransferEncoding) -> Ordering
fn cmp(&self, other: &ContentTransferEncoding) -> Ordering
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 PartialEq for ContentTransferEncoding
impl PartialEq for ContentTransferEncoding
Source§fn eq(&self, other: &ContentTransferEncoding) -> bool
fn eq(&self, other: &ContentTransferEncoding) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ContentTransferEncoding
impl PartialOrd for ContentTransferEncoding
impl Eq for ContentTransferEncoding
impl StructuralPartialEq for ContentTransferEncoding
Auto Trait Implementations§
impl Freeze for ContentTransferEncoding
impl RefUnwindSafe for ContentTransferEncoding
impl Send for ContentTransferEncoding
impl Sync for ContentTransferEncoding
impl Unpin for ContentTransferEncoding
impl UnsafeUnpin for ContentTransferEncoding
impl UnwindSafe for ContentTransferEncoding
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