Struct git3::diff::BufferDiff
source · pub struct BufferDiff { /* private fields */ }
Implementations§
source§impl BufferDiff
impl BufferDiff
pub fn new() -> BufferDiff
pub fn is_empty(&self) -> bool
pub fn hunks_in_row_range<'a>( &'a self, range: Range<u32>, buffer: &'a BufferSnapshot ) -> impl 'a + Iterator<Item = DiffHunk<u32>>
pub fn hunks_intersecting_range<'a>( &'a self, range: Range<Anchor>, buffer: &'a BufferSnapshot ) -> impl 'a + Iterator<Item = DiffHunk<u32>>
pub fn hunks_intersecting_range_rev<'a>( &'a self, range: Range<Anchor>, buffer: &'a BufferSnapshot ) -> impl 'a + Iterator<Item = DiffHunk<u32>>
pub fn clear(&mut self, buffer: &BufferSnapshot)
pub async fn update(&mut self, diff_base: &str, buffer: &BufferSnapshot)
Trait Implementations§
source§impl Clone for BufferDiff
impl Clone for BufferDiff
source§fn clone(&self) -> BufferDiff
fn clone(&self) -> BufferDiff
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for BufferDiff
impl Send for BufferDiff
impl Sync for BufferDiff
impl Unpin for BufferDiff
impl UnwindSafe for BufferDiff
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