pub struct FunctionSignature {
pub name: &'static str,
pub display_name: &'static str,
pub params: &'static [FunctionParam],
pub return_type: Option<ReturnTypeRule>,
pub category: FunctionCategory,
}Expand description
Function signature for smart completion.
Contains all metadata needed to display rich function completions with parameter hints and return type information.
Fields§
§name: &'static strFunction name in lowercase (for lookup)
display_name: &'static strDisplay name in uppercase (for completion label)
params: &'static [FunctionParam]Function parameters
return_type: Option<ReturnTypeRule>Return type rule, if known
category: FunctionCategoryFunction category
Implementations§
Source§impl FunctionSignature
impl FunctionSignature
Sourcepub fn format_signature(&self) -> String
pub fn format_signature(&self) -> String
Formats the function signature as “NAME(params) → TYPE”
Trait Implementations§
Source§impl Clone for FunctionSignature
impl Clone for FunctionSignature
Source§fn clone(&self) -> FunctionSignature
fn clone(&self) -> FunctionSignature
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FunctionSignature
impl RefUnwindSafe for FunctionSignature
impl Send for FunctionSignature
impl Sync for FunctionSignature
impl Unpin for FunctionSignature
impl UnwindSafe for FunctionSignature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more