pub struct SignatureHelp {
pub signatures: Vec<SignatureInformation>,
pub active_signature: Option<u32>,
pub active_parameter: Option<ActiveParameter>,
}Expand description
Signature help represents the signature of something callable. There can be multiple signature but only one active and only one active parameter.
Fields§
§signatures: Vec<SignatureInformation>One or more signatures.
active_signature: Option<u32>The active signature. If omitted or the value lies outside the
range of signatures the value defaults to zero or is ignored if
the SignatureHelp has no signatures.
Whenever possible implementors should make an active decision about the active signature and shouldn’t rely on a default value.
In future version of the protocol this property might become mandatory to better express this.
active_parameter: Option<ActiveParameter>The active parameter of the active signature.
If null, no parameter of the signature is active (for example a named
argument that does not match any declared parameters). This is only valid
if the client specifies the client capability
textDocument.signatureHelp.noActiveParameterSupport === true
If omitted or the value lies outside the range of
signatures[activeSignature].parameters defaults to 0 if the active
signature has parameters.
If the active signature has no parameters it is ignored.
In future version of the protocol this property might become mandatory (but still nullable) to better express the active parameter if the active signature does have any.
Implementations§
Source§impl SignatureHelp
impl SignatureHelp
pub const fn new( signatures: Vec<SignatureInformation>, active_signature: Option<u32>, active_parameter: Option<ActiveParameter>, ) -> Self
Trait Implementations§
Source§impl Clone for SignatureHelp
impl Clone for SignatureHelp
Source§fn clone(&self) -> SignatureHelp
fn clone(&self) -> SignatureHelp
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SignatureHelp
impl Debug for SignatureHelp
Source§impl Default for SignatureHelp
impl Default for SignatureHelp
Source§fn default() -> SignatureHelp
fn default() -> SignatureHelp
Source§impl<'de> Deserialize<'de> for SignatureHelp
impl<'de> Deserialize<'de> for SignatureHelp
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>,
Source§impl Hash for SignatureHelp
impl Hash for SignatureHelp
Source§impl PartialEq for SignatureHelp
impl PartialEq for SignatureHelp
Source§fn eq(&self, other: &SignatureHelp) -> bool
fn eq(&self, other: &SignatureHelp) -> bool
self and other values to be equal, and is used by ==.