Struct jujutsu_lib::diff::Diff
source · [−]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
sourceimpl<'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>ⓘNotable traits for DiffHunkIterator<'diff, 'input>impl<'diff, 'input> Iterator for DiffHunkIterator<'diff, 'input> type Item = DiffHunk<'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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more