From 0263957dc920a10785af6874ab3040a529547d70 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sat, 25 Jan 2025 16:34:23 -0500 Subject: Add missing documentation to _with_progress load functions --- rust/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'rust/src') diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 159a7ec5..711448e5 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -114,6 +114,9 @@ pub fn load(file_path: impl AsRef) -> Option> { load_with_progress(file_path, NoProgressCallback) } +/// Equivalent to [`load`] but with a progress callback. +/// +/// NOTE: The progress callback will _only_ be called when loading BNDBs. pub fn load_with_progress( file_path: impl AsRef, mut progress: P, @@ -170,6 +173,9 @@ where ) } +/// Equivalent to [`load_with_options`] but with a progress callback. +/// +/// NOTE: The progress callback will _only_ be called when loading BNDBs. pub fn load_with_options_and_progress( file_path: impl AsRef, update_analysis_and_wait: bool, @@ -222,6 +228,7 @@ where load_view_with_progress(bv, update_analysis_and_wait, options, NoProgressCallback) } +/// Equivalent to [`load_view`] but with a progress callback. pub fn load_view_with_progress( bv: &BinaryView, update_analysis_and_wait: bool, -- cgit v1.3.1