Enum lsp_types::InlineValue
source · pub enum InlineValue {
Text(InlineValueText),
VariableLookup(InlineValueVariableLookup),
EvaluatableExpression(InlineValueEvaluatableExpression),
}
Expand description
Inline value information can be provided by different means:
- directly as a text value (class InlineValueText).
- as a name to use for a variable lookup (class InlineValueVariableLookup)
- as an evaluatable expression (class InlineValueEvaluatableExpression) The InlineValue types combines all inline value types into one type.
@since 3.17.0
Variants§
Text(InlineValueText)
VariableLookup(InlineValueVariableLookup)
EvaluatableExpression(InlineValueEvaluatableExpression)
Trait Implementations§
source§impl Clone for InlineValue
impl Clone for InlineValue
source§fn clone(&self) -> InlineValue
fn clone(&self) -> InlineValue
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 InlineValue
impl Debug for InlineValue
source§impl<'de> Deserialize<'de> for InlineValue
impl<'de> Deserialize<'de> for InlineValue
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 From<InlineValueEvaluatableExpression> for InlineValue
impl From<InlineValueEvaluatableExpression> for InlineValue
source§fn from(from: InlineValueEvaluatableExpression) -> Self
fn from(from: InlineValueEvaluatableExpression) -> Self
Converts to this type from the input type.
source§impl From<InlineValueText> for InlineValue
impl From<InlineValueText> for InlineValue
source§fn from(from: InlineValueText) -> Self
fn from(from: InlineValueText) -> Self
Converts to this type from the input type.
source§impl From<InlineValueVariableLookup> for InlineValue
impl From<InlineValueVariableLookup> for InlineValue
source§fn from(from: InlineValueVariableLookup) -> Self
fn from(from: InlineValueVariableLookup) -> Self
Converts to this type from the input type.
source§impl PartialEq<InlineValue> for InlineValue
impl PartialEq<InlineValue> for InlineValue
source§fn eq(&self, other: &InlineValue) -> bool
fn eq(&self, other: &InlineValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.