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
sourceimpl Clone for ParameterInformation
impl Clone for ParameterInformation
sourcefn clone(&self) -> ParameterInformation
fn clone(&self) -> ParameterInformation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ParameterInformation
impl Debug for ParameterInformation
sourceimpl<'de> Deserialize<'de> for ParameterInformation
impl<'de> Deserialize<'de> for ParameterInformation
sourcefn 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
sourceimpl PartialEq<ParameterInformation> for ParameterInformation
impl PartialEq<ParameterInformation> for ParameterInformation
sourcefn eq(&self, other: &ParameterInformation) -> bool
fn eq(&self, other: &ParameterInformation) -> bool
sourceimpl Serialize for ParameterInformation
impl Serialize for ParameterInformation
impl Eq for ParameterInformation
impl StructuralEq for ParameterInformation
impl StructuralPartialEq for ParameterInformation
Auto Trait Implementations
impl RefUnwindSafe for ParameterInformation
impl Send for ParameterInformation
impl Sync for ParameterInformation
impl Unpin for ParameterInformation
impl UnwindSafe for ParameterInformation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more