pub enum Algorithm {
Similar,
Myers,
}Expand description
The algorithm to use for computing diffs
Variants§
Similar
Use the similar crate’s algorithm (default)
Myers
Use our implementation of the Myers algorithm
Implementations§
Source§impl Algorithm
impl Algorithm
Sourcepub fn available_algorithms() -> Vec<Self>
pub fn available_algorithms() -> Vec<Self>
Returns a list of available algorithms based on enabled features
Sourcepub fn has_available_algorithms() -> bool
pub fn has_available_algorithms() -> bool
Checks if any algorithms are available
Sourcepub fn first_available() -> Option<Self>
pub fn first_available() -> Option<Self>
Returns the first available algorithm, or None if no algorithms are available
Trait Implementations§
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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