diff options
Diffstat (limited to 'src/metric.rs')
-rw-r--r-- | src/metric.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/metric.rs b/src/metric.rs index ff996b9..d37d2bf 100644 --- a/src/metric.rs +++ b/src/metric.rs @@ -368,6 +368,11 @@ impl<T> ExhaustiveSearch<T> { pub fn push(&mut self, item: T) { self.0.push(item); } + + /// Get the size of this index. + pub fn len(&self) -> usize { + self.0.len() + } } impl<T> FromIterator<T> for ExhaustiveSearch<T> { |