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