pub enum PatchSourceKind {
Raw {
len: u32,
},
Deflated {
compressed_len: u32,
decompressed_len: u32,
},
}Expand description
Encoding of a PartSource::Patch’s bytes at its absolute patch-file offset.
Variants§
Raw
Bytes are stored verbatim at offset and have length len.
Deflated
Bytes are a raw DEFLATE stream at offset of compressed_len bytes,
producing decompressed_len bytes of output.
Trait Implementations§
Source§impl Clone for PatchSourceKind
impl Clone for PatchSourceKind
Source§fn clone(&self) -> PatchSourceKind
fn clone(&self) -> PatchSourceKind
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 PatchSourceKind
impl Debug for PatchSourceKind
Source§impl<'de> Deserialize<'de> for PatchSourceKind
impl<'de> Deserialize<'de> for PatchSourceKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PatchSourceKind
impl PartialEq for PatchSourceKind
Source§fn eq(&self, other: &PatchSourceKind) -> bool
fn eq(&self, other: &PatchSourceKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PatchSourceKind
impl Serialize for PatchSourceKind
impl Eq for PatchSourceKind
impl StructuralPartialEq for PatchSourceKind
Auto Trait Implementations§
impl Freeze for PatchSourceKind
impl RefUnwindSafe for PatchSourceKind
impl Send for PatchSourceKind
impl Sync for PatchSourceKind
impl Unpin for PatchSourceKind
impl UnsafeUnpin for PatchSourceKind
impl UnwindSafe for PatchSourceKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more