lsp_types::request

Type Alias GotoTypeDefinitionResponse

Source
pub type GotoTypeDefinitionResponse = GotoDefinitionResponse;

Aliased Type§

enum GotoTypeDefinitionResponse {
    Scalar(Location),
    Array(Vec<Location>),
    Link(Vec<LocationLink>),
}

Variants§

Trait Implementations

Source§

impl Clone for GotoDefinitionResponse

Source§

fn clone(&self) -> GotoDefinitionResponse

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GotoDefinitionResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for GotoDefinitionResponse

Source§

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<Location> for GotoDefinitionResponse

Source§

fn from(location: Location) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Location>> for GotoDefinitionResponse

Source§

fn from(locations: Vec<Location>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<LocationLink>> for GotoDefinitionResponse

Source§

fn from(locations: Vec<LocationLink>) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for GotoDefinitionResponse

Source§

fn eq(&self, other: &GotoDefinitionResponse) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for GotoDefinitionResponse

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for GotoDefinitionResponse