cargo format and small changes
This commit is contained in:
1 parent
e2cf0b79bc
commit
e3be920805
5 files changed
+9
-12
No files matched your search
@@ -92,7 +92,7 @@ impl DB {
|
||||
Some(return_value)
|
||||
}
|
||||
/// Retrieves the value at a given index.
|
||||
///
|
||||
///
|
||||
/**
|
||||
get you know get it like its a traditional long ass vec
|
||||
|
||||
@@ -255,4 +255,4 @@ impl DB {
|
||||
}
|
||||
}
|
||||
|
||||
mod test;
|
||||
mod test;
|
||||
@@ -460,6 +460,7 @@ impl MonotonicSequence {
|
||||
self.jumps.to_vec()
|
||||
}
|
||||
|
||||
/// into_inner
|
||||
pub fn destroy(self) -> (Vec<(usize, u32)>, usize) {
|
||||
(self.jumps, self.length)
|
||||
}
|
||||
@@ -649,7 +650,7 @@ impl Iterator for MonotonicIter {
|
||||
type Item = u32;
|
||||
// hit it from the front
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
let (f_, v)= self.dis.front_mut()?;
|
||||
let (f_, v) = self.dis.front_mut()?;
|
||||
let v = *v;
|
||||
*f_ -= 1;
|
||||
if *f_ == 0 {
|
||||
@@ -664,7 +665,7 @@ impl IntoIterator for &MonotonicSequence {
|
||||
type IntoIter = MonotonicIter;
|
||||
type Item = u32;
|
||||
|
||||
// hehe
|
||||
// hehe
|
||||
fn into_iter(self) -> Self::IntoIter {
|
||||
let dis: Vec<(usize, u32)> = self
|
||||
.jumps()
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
pub mod levenshtein;
|
||||
pub mod common_subsequence;
|
||||
pub mod levenshtein;
|
||||
pub mod wrapper_;
|
||||
+2
-2
@@ -3,7 +3,7 @@ use lda_strdist::{
|
||||
generate_alignment, levenshtein_with_operations, levenstein_distance, reconstruct_from,
|
||||
reconstruct_to, EditCost,
|
||||
},
|
||||
wrapper_::{EditOperationVec, CostOperationVec},
|
||||
wrapper_::{CostOperationVec, EditOperationVec},
|
||||
};
|
||||
|
||||
fn main() {
|
||||
@@ -27,7 +27,7 @@ fn main() {
|
||||
println!("this is the d");
|
||||
for i in &dp {
|
||||
println!("{}", CostOperationVec(i))
|
||||
}
|
||||
}
|
||||
let (al1, al2) = generate_alignment(&dp);
|
||||
println!("Alignment:\n{:#?}\n{:#?}", al1, al2);
|
||||
}
|
||||
+1
-5
@@ -90,11 +90,7 @@ impl Display for InsanelySpecific<'_> {
|
||||
})
|
||||
}
|
||||
}
|
||||
use lda_ansi::ansi_backbone::Style as StyleConstruct;
|
||||
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;
|
||||
use lda_ansi::import::*;
|
||||
|
||||
impl Display for ColoredInsanelySpecific<'_> {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
|
||||
Reference in new issue
Block a user