From 819c0cbedcc6c7f0f8aba628a7a2875b7181e3f7 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Fri, 25 Jul 2025 23:13:39 -0400 Subject: [Rust] Add docs for what the boolean return value does for some specific "progress" like callbacks Still need to add more, consider changing the boolean to an enum that describes it better, so we do not need to copy paste docs around. --- rust/src/binary_view.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rust/src/binary_view.rs') 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 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 bool>( &self, query: &SearchQuery, -- cgit v1.3.1