pub struct GoldenDiff {
pub distance: usize,
pub golden_len: usize,
pub actual_len: usize,
pub ratio: f64,
}Expand description
How far a run’s tool sequence is from a golden one.
Fields§
§distance: usizeInsertions, deletions and substitutions needed to turn one sequence into the other.
golden_len: usize§actual_len: usize§ratio: f64distance over the longer sequence: 0.0 identical, 1.0 nothing in
common. Normalizing makes one threshold work for short and long runs.
Implementations§
Trait Implementations§
Source§impl Clone for GoldenDiff
impl Clone for GoldenDiff
Source§impl Debug for GoldenDiff
impl Debug for GoldenDiff
Source§impl Display for GoldenDiff
impl Display for GoldenDiff
Source§impl PartialEq for GoldenDiff
impl PartialEq for GoldenDiff
impl StructuralPartialEq for GoldenDiff
Auto Trait Implementations§
impl Forget for GoldenDiff
impl Freeze for GoldenDiff
impl RefUnwindSafe for GoldenDiff
impl Send for GoldenDiff
impl Sync for GoldenDiff
impl Unpin for GoldenDiff
impl UnsafeUnpin for GoldenDiff
impl UnwindSafe for GoldenDiff
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