summaryrefslogtreecommitdiff
path: root/rust/src/function.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-07-02 01:56:19 -0400
committerMason Reed <mason@vector35.com>2025-07-02 01:57:50 -0400
commit3bb5e33bd835e3d2ed6cf037c77a1962e4df1696 (patch)
treec8764bbb59db38a20ab796e9c4bc5ba084a328a9 /rust/src/function.rs
parent28a9d66e9e2187d08673917459b0a230504045b1 (diff)
[Rust] Add note for `Function::has_explicitly_defined_type`
Diffstat (limited to 'rust/src/function.rs')
-rw-r--r--rust/src/function.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/rust/src/function.rs b/rust/src/function.rs
index 456c8f4a..55a609cf 100644
--- a/rust/src/function.rs
+++ b/rust/src/function.rs
@@ -2334,7 +2334,9 @@ impl Function {
unsafe { BNSetAutoFunctionCanReturn(self.handle, &mut value_raw) }
}
- /// Whether function has explicitly defined types
+ /// Whether the function type was defined with [`Function::apply_auto_discovered_type`].
+ ///
+ /// NOTE: This is different from [`Function::has_user_type`].
pub fn has_explicitly_defined_type(&self) -> bool {
unsafe { BNFunctionHasExplicitlyDefinedType(self.handle) }
}