pub struct OwnedTrailer {
pub token: OwnedToken,
pub value: String,
}Expand description
A version of the Trailer which owns its token and
value. Useful for when you need to carry trailers around in a long
lived data structure.
Fields§
§token: OwnedToken§value: StringTrait Implementations§
Source§impl Clone for OwnedTrailer
impl Clone for OwnedTrailer
Source§fn clone(&self) -> OwnedTrailer
fn clone(&self) -> OwnedTrailer
Returns a duplicate of the value. Read more
1.0.0 · 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 OwnedTrailer
impl Debug for OwnedTrailer
Source§impl<'a> From<&'a OwnedTrailer> for Trailer<'a>
impl<'a> From<&'a OwnedTrailer> for Trailer<'a>
Source§fn from(t: &'a OwnedTrailer) -> Self
fn from(t: &'a OwnedTrailer) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&Trailer<'a>> for OwnedTrailer
impl<'a> From<&Trailer<'a>> for OwnedTrailer
Source§impl<'a> From<Trailer<'a>> for OwnedTrailer
impl<'a> From<Trailer<'a>> for OwnedTrailer
Source§impl Hash for OwnedTrailer
impl Hash for OwnedTrailer
Source§impl Ord for OwnedTrailer
impl Ord for OwnedTrailer
Source§fn cmp(&self, other: &OwnedTrailer) -> Ordering
fn cmp(&self, other: &OwnedTrailer) -> Ordering
1.21.0 · 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 OwnedTrailer
impl PartialEq for OwnedTrailer
Source§impl PartialOrd for OwnedTrailer
impl PartialOrd for OwnedTrailer
impl Eq for OwnedTrailer
impl StructuralPartialEq for OwnedTrailer
Auto Trait Implementations§
impl Freeze for OwnedTrailer
impl RefUnwindSafe for OwnedTrailer
impl Send for OwnedTrailer
impl Sync for OwnedTrailer
impl Unpin for OwnedTrailer
impl UnsafeUnpin for OwnedTrailer
impl UnwindSafe for OwnedTrailer
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