Struct lsp_types::ParameterInformation
source · pub struct ParameterInformation {
pub label: ParameterLabel,
pub documentation: Option<Documentation>,
}
Expand description
Represents a parameter of a callable-signature. A parameter can have a label and a doc-comment.
Fields§
§label: ParameterLabel
The label of this parameter information.
Either a string or an inclusive start and exclusive end offsets within its containing signature label. (see SignatureInformation.label). Note: A label of type string must be a substring of its containing signature label.
documentation: Option<Documentation>
The human-readable doc-comment of this parameter. Will be shown in the UI but can be omitted.
Trait Implementations§
source§impl Clone for ParameterInformation
impl Clone for ParameterInformation
source§fn clone(&self) -> ParameterInformation
fn clone(&self) -> ParameterInformation
Returns a copy 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 moresource§impl Debug for ParameterInformation
impl Debug for ParameterInformation
source§impl<'de> Deserialize<'de> for ParameterInformation
impl<'de> Deserialize<'de> for ParameterInformation
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 ParameterInformation
impl PartialEq for ParameterInformation
source§fn eq(&self, other: &ParameterInformation) -> bool
fn eq(&self, other: &ParameterInformation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ParameterInformation
impl Serialize for ParameterInformation
impl Eq for ParameterInformation
impl StructuralPartialEq for ParameterInformation
Auto Trait Implementations§
impl Freeze for ParameterInformation
impl RefUnwindSafe for ParameterInformation
impl Send for ParameterInformation
impl Sync for ParameterInformation
impl Unpin for ParameterInformation
impl UnwindSafe for ParameterInformation
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