Struct radicle_git_ext::commit::trailers::OwnedTrailer
source · 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: String
Trait Implementations§
source§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
Auto Trait Implementations§
impl Freeze for OwnedTrailer
impl RefUnwindSafe for OwnedTrailer
impl Send for OwnedTrailer
impl Sync for OwnedTrailer
impl Unpin 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