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<Algorithm> for Algorithm
impl PartialEq<Algorithm> for Algorithm
source§impl PartialOrd<Algorithm> for Algorithm
impl PartialOrd<Algorithm> 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 more