diff options
Diffstat (limited to 'rust/src/binary_view.rs')
| -rw-r--r-- | rust/src/binary_view.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/src/binary_view.rs b/rust/src/binary_view.rs index a07ace7f..76efc40e 100644 --- a/rust/src/binary_view.rs +++ b/rust/src/binary_view.rs @@ -235,11 +235,15 @@ pub trait BinaryViewExt: BinaryViewBase { } /// Search the view using the query options. + /// + /// In the `on_match` callback return `false` to stop searching. fn search<C: FnMut(u64, &DataBuffer) -> bool>(&self, query: &SearchQuery, on_match: C) -> bool { self.search_with_progress(query, on_match, NoProgressCallback) } /// Search the view using the query options. + /// + /// In the `on_match` callback return `false` to stop searching. fn search_with_progress<P: ProgressCallback, C: FnMut(u64, &DataBuffer) -> bool>( &self, query: &SearchQuery, |
