diff options
Diffstat (limited to 'src/metric/soft.rs')
-rw-r--r-- | src/metric/soft.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/metric/soft.rs b/src/metric/soft.rs index 0d7dcdb..d443bfd 100644 --- a/src/metric/soft.rs +++ b/src/metric/soft.rs @@ -82,6 +82,16 @@ where } } +impl<T, U> Default for SoftSearch<U> +where + T: SoftDelete, + U: FromIterator<T> + IntoIterator<Item = T>, +{ + fn default() -> Self { + Self::new() + } +} + impl<T, U: Extend<T>> Extend<T> for SoftSearch<U> { fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I) { self.0.extend(iter); |