From 3bb5e33bd835e3d2ed6cf037c77a1962e4df1696 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 2 Jul 2025 01:56:19 -0400 Subject: [Rust] Add note for `Function::has_explicitly_defined_type` --- rust/src/function.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rust/src/function.rs') 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) } } -- cgit v1.3.1