Struct git_trailers::OwnedTrailer
source · [−]pub struct OwnedTrailer {
pub token: OwnedToken,
pub values: Vec<String>,
}
Expand description
A version of the Trailer<’a> which owns it’s token and values. Useful for when you need to carry trailers around in a long lived data structure.
Fields
token: OwnedToken
values: Vec<String>
Trait Implementations
sourceimpl Debug for OwnedTrailer
impl Debug for OwnedTrailer
sourceimpl<'a> From<&'a OwnedTrailer> for Trailer<'a>
impl<'a> From<&'a OwnedTrailer> for Trailer<'a>
sourcefn from(t: &'a OwnedTrailer) -> Self
fn from(t: &'a OwnedTrailer) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&Trailer<'a>> for OwnedTrailer
impl<'a> From<&Trailer<'a>> for OwnedTrailer
Auto Trait Implementations
impl RefUnwindSafe for OwnedTrailer
impl Send for OwnedTrailer
impl Sync for OwnedTrailer
impl Unpin for OwnedTrailer
impl UnwindSafe for OwnedTrailer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more