Compare commits

...
1 Commits
4 changed files with 5 additions and 8 deletions

No files matched your search

+2 -1
View File
@@ -460,6 +460,7 @@ impl MonotonicSequence {
self.jumps.to_vec() self.jumps.to_vec()
} }
/// into_inner
pub fn destroy(self) -> (Vec<(usize, u32)>, usize) { pub fn destroy(self) -> (Vec<(usize, u32)>, usize) {
(self.jumps, self.length) (self.jumps, self.length)
} }
@@ -649,7 +650,7 @@ impl Iterator for MonotonicIter {
type Item = u32; type Item = u32;
// hit it from the front // hit it from the front
fn next(&mut self) -> Option<Self::Item> { fn next(&mut self) -> Option<Self::Item> {
let (f_, v)= self.dis.front_mut()?; let (f_, v) = self.dis.front_mut()?;
let v = *v; let v = *v;
*f_ -= 1; *f_ -= 1;
if *f_ == 0 { if *f_ == 0 {
+1 -1
View File
@@ -1,3 +1,3 @@
pub mod levenshtein;
pub mod common_subsequence; pub mod common_subsequence;
pub mod levenshtein;
pub mod wrapper_; pub mod wrapper_;
+1 -1
View File
@@ -3,7 +3,7 @@ use lda_strdist::{
generate_alignment, levenshtein_with_operations, levenstein_distance, reconstruct_from, generate_alignment, levenshtein_with_operations, levenstein_distance, reconstruct_from,
reconstruct_to, EditCost, reconstruct_to, EditCost,
}, },
wrapper_::{EditOperationVec, CostOperationVec}, wrapper_::{CostOperationVec, EditOperationVec},
}; };
fn main() { fn main() {
+1 -5
View File
@@ -90,11 +90,7 @@ impl Display for InsanelySpecific<'_> {
}) })
} }
} }
use lda_ansi::ansi_backbone::Style as StyleConstruct; use lda_ansi::import::*;
use lda_ansi::ansi_colors_2::ansi_color_interface::ColorContext;
use lda_ansi::ansi_colors_2::Color;
use lda_ansi::ansi_colors_2::CustomColor;
use lda_ansi::ansi_styles::Style;
impl Display for ColoredInsanelySpecific<'_> { impl Display for ColoredInsanelySpecific<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {