pub struct Diff<'input> { /* private fields */ }
Expand description
Takes any number of inputs and finds regions that are them same between all of them.
Implementations§
source§impl<'input> Diff<'input>
impl<'input> Diff<'input>
pub fn for_tokenizer( inputs: &[&'input [u8]], tokenizer: &impl Fn(&[u8]) -> Vec<Range<usize>> ) -> Self
pub fn unrefined(inputs: &[&'input [u8]]) -> Self
pub fn default_refinement(inputs: &[&'input [u8]]) -> Self
pub fn hunks<'diff>(&'diff self) -> DiffHunkIterator<'diff, 'input> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl<'input> RefUnwindSafe for Diff<'input>
impl<'input> Send for Diff<'input>
impl<'input> Sync for Diff<'input>
impl<'input> Unpin for Diff<'input>
impl<'input> UnwindSafe for Diff<'input>
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