Derive Clone for Search

This commit is contained in:
Dirkjan Ochtman 2021-02-10 12:51:21 +01:00
parent da26dedfc8
commit 95804e9672
1 changed files with 1 additions and 0 deletions

View File

@ -186,6 +186,7 @@ impl<'a> SegmentState<'a> {
} }
} }
#[derive(Clone)]
pub struct Search { pub struct Search {
memo: HashMap<MemoKey, (f64, Range<usize>)>, memo: HashMap<MemoKey, (f64, Range<usize>)>,
split_cache: Vec<usize>, split_cache: Vec<usize>,