Struct git_repository::object::tree::diff::change::DiffPlatform
source · [−]pub struct DiffPlatform<'old, 'new> { /* private fields */ }
Expand description
A platform to keep temporary information to perform line diffs.
Implementations
sourceimpl<'old, 'new> DiffPlatform<'old, 'new>
impl<'old, 'new> DiffPlatform<'old, 'new>
sourcepub fn text<'bufs>(&self, algorithm: Algorithm) -> TextDiff<'_, '_, 'bufs, [u8]>
pub fn text<'bufs>(&self, algorithm: Algorithm) -> TextDiff<'_, '_, 'bufs, [u8]>
Create a platform for performing various tasks to diff text.
It can be used to traverse all line changes for example.
Auto Trait Implementations
impl<'old, 'new> !RefUnwindSafe for DiffPlatform<'old, 'new>
impl<'old, 'new> !Send for DiffPlatform<'old, 'new>
impl<'old, 'new> !Sync for DiffPlatform<'old, 'new>
impl<'old, 'new> Unpin for DiffPlatform<'old, 'new>
impl<'old, 'new> !UnwindSafe for DiffPlatform<'old, 'new>
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