pub struct HeaderLine(/* private fields */);Expand description
Header line wrapper.
Implementations§
Source§impl HeaderLine
impl HeaderLine
Sourcepub const fn new(field: HeaderField) -> Self
pub const fn new(field: HeaderField) -> Self
Creates a header line.
Sourcepub const fn field(&self) -> &HeaderField
pub const fn field(&self) -> &HeaderField
Returns the wrapped field.
Trait Implementations§
Source§impl Clone for HeaderLine
impl Clone for HeaderLine
Source§fn clone(&self) -> HeaderLine
fn clone(&self) -> HeaderLine
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 HeaderLine
impl Debug for HeaderLine
Source§impl Display for HeaderLine
impl Display for HeaderLine
Source§impl Hash for HeaderLine
impl Hash for HeaderLine
Source§impl Ord for HeaderLine
impl Ord for HeaderLine
Source§fn cmp(&self, other: &HeaderLine) -> Ordering
fn cmp(&self, other: &HeaderLine) -> 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 HeaderLine
impl PartialEq for HeaderLine
Source§fn eq(&self, other: &HeaderLine) -> bool
fn eq(&self, other: &HeaderLine) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for HeaderLine
impl PartialOrd for HeaderLine
impl Eq for HeaderLine
impl StructuralPartialEq for HeaderLine
Auto Trait Implementations§
impl Freeze for HeaderLine
impl RefUnwindSafe for HeaderLine
impl Send for HeaderLine
impl Sync for HeaderLine
impl Unpin for HeaderLine
impl UnsafeUnpin for HeaderLine
impl UnwindSafe for HeaderLine
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