pub struct ParsedValue<'x> { /* private fields */ }Expand description
A header value parsed on its own, outside a message, by
HeaderForm::parse or crate::Header::parse_as. It borrows the
input and owns a small store only when the value needs one (a raw,
single-line text or date value allocates nothing). Parsed values compare
by their value.
Implementations§
Source§impl<'x> ParsedValue<'x>
impl<'x> ParsedValue<'x>
Sourcepub fn value(&self) -> HeaderValue<'_>
pub fn value(&self) -> HeaderValue<'_>
The parsed value.
Trait Implementations§
Source§impl<'x> Clone for ParsedValue<'x>
impl<'x> Clone for ParsedValue<'x>
Source§impl Debug for ParsedValue<'_>
impl Debug for ParsedValue<'_>
impl Eq for ParsedValue<'_>
Auto Trait Implementations§
impl<'x> Freeze for ParsedValue<'x>
impl<'x> RefUnwindSafe for ParsedValue<'x>
impl<'x> Send for ParsedValue<'x>
impl<'x> Sync for ParsedValue<'x>
impl<'x> Unpin for ParsedValue<'x>
impl<'x> UnsafeUnpin for ParsedValue<'x>
impl<'x> UnwindSafe for ParsedValue<'x>
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