diff options
| author | Mason Reed <mason@vector35.com> | 2025-01-25 16:34:23 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-01-25 16:34:23 -0500 |
| commit | 0263957dc920a10785af6874ab3040a529547d70 (patch) | |
| tree | a87262b0b704be6c0f7300bb4d04c7b0c71a751f /rust/src | |
| parent | 98276031969e67229d6cc6344f1b9debdc211e8c (diff) | |
Add missing documentation to _with_progress load functions
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
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<Path>) -> Option<Ref<BinaryView>> { 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<P: ProgressCallback>( file_path: impl AsRef<Path>, 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<O, P>( file_path: impl AsRef<Path>, 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<O, P>( bv: &BinaryView, update_analysis_and_wait: bool, |
