Struct git2::DiffBinaryFile
source · [−]pub struct DiffBinaryFile<'a> { /* private fields */ }
Expand description
The contents of one of the files in a binary diff.
Implementations
sourceimpl<'a> DiffBinaryFile<'a>
impl<'a> DiffBinaryFile<'a>
sourcepub fn kind(&self) -> DiffBinaryKind
pub fn kind(&self) -> DiffBinaryKind
The type of binary data for this file
sourcepub fn data(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn data(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
The binary data, deflated
sourcepub fn inflated_len(&self) -> usize
pub fn inflated_len(&self) -> usize
The length of the binary data after inflation
Auto Trait Implementations
impl<'a> RefUnwindSafe for DiffBinaryFile<'a>
impl<'a> !Send for DiffBinaryFile<'a>
impl<'a> !Sync for DiffBinaryFile<'a>
impl<'a> Unpin for DiffBinaryFile<'a>
impl<'a> UnwindSafe for DiffBinaryFile<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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