pub enum Algorithm {
Myers,
Patience,
Lcs,
}
Expand description
An enum representing a diffing algorithm.
Variants§
Myers
Picks the myers algorithm from crate::algorithms::myers
Patience
Picks the patience algorithm from crate::algorithms::patience
Lcs
Picks the LCS algorithm from crate::algorithms::lcs
Trait Implementations§
source§impl Default for Algorithm
impl Default for Algorithm
source§fn default() -> Algorithm
fn default() -> Algorithm
Returns the default algorithm (Algorithm::Myers
).
source§impl Ord for Algorithm
impl Ord for Algorithm
source§impl PartialEq for Algorithm
impl PartialEq for Algorithm
source§impl PartialOrd for Algorithm
impl PartialOrd for Algorithm
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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