pub struct FunctionDecl {
pub name: String,
pub signature: Option<String>,
pub params: Vec<String>,
pub summary: String,
}Expand description
A function the host application provides (a jlens_core::HostFunction), declared to the
language service so that it is completed and documented like a built-in function.
It deserializes from {"name", "signature", "params", "summary"}; all but name are
optional.
Fields§
§name: StringThe name, without the leading $.
signature: Option<String>The signature, such as <n-n?:n>.
params: Vec<String>Parameter names, without $, shown by signature help.
summary: StringOne-line description.
Implementations§
Trait Implementations§
Source§impl Clone for FunctionDecl
impl Clone for FunctionDecl
Source§impl Debug for FunctionDecl
impl Debug for FunctionDecl
Source§impl Default for FunctionDecl
impl Default for FunctionDecl
Source§impl<'de> Deserialize<'de> for FunctionDeclwhere
FunctionDecl: Default,
impl<'de> Deserialize<'de> for FunctionDeclwhere
FunctionDecl: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FunctionDecl
impl PartialEq for FunctionDecl
Source§impl Serialize for FunctionDecl
impl Serialize for FunctionDecl
impl StructuralPartialEq for FunctionDecl
Auto Trait Implementations§
impl Freeze for FunctionDecl
impl RefUnwindSafe for FunctionDecl
impl Send for FunctionDecl
impl Sync for FunctionDecl
impl Unpin for FunctionDecl
impl UnsafeUnpin for FunctionDecl
impl UnwindSafe for FunctionDecl
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