pub struct DiffUtils;Implementations§
Source§impl DiffUtils
impl DiffUtils
pub fn with_default_diff_algorithm_factory( factory: Box<dyn DiffAlgorithmFactory<String> + Send + Sync>, )
pub fn diff<T>( original: &[T], revised: &[T], progress: Option<&dyn DiffAlgorithmListener>, ) -> Patch<T>
pub fn diff_with_options<T>( original: &[T], revised: &[T], include_equal_parts: bool, ) -> Patch<T>
pub fn diff_text( source_text: &str, target_text: &str, progress: Option<&dyn DiffAlgorithmListener>, ) -> Patch<String>
pub fn diff_with_equalizer<T, F>( source: &[T], target: &[T], equalizer: Option<F>, ) -> Patch<T>
pub fn diff_with_algorithm<T>(
original: &[T],
revised: &[T],
algorithm: &dyn DiffAlgorithm<T>,
_progress: Option<&dyn DiffAlgorithmListener>,
include_equal_parts: bool,
) -> Patch<T>where
T: Clone + 'static,
pub fn diff_inline(original: &str, revised: &str) -> Patch<String>
pub fn patch<T>( original: &[T], patch: &Patch<T>, ) -> Result<Vec<T>, PatchFailedException>
pub fn unpatch<T>( revised: &[T], patch: &Patch<T>, ) -> Result<Vec<T>, PatchFailedException>
Auto Trait Implementations§
impl Freeze for DiffUtils
impl RefUnwindSafe for DiffUtils
impl Send for DiffUtils
impl Sync for DiffUtils
impl Unpin for DiffUtils
impl UnsafeUnpin for DiffUtils
impl UnwindSafe for DiffUtils
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