pub struct LocationLink {
pub origin_selection_range: Option<Range>,
pub target_uri: Uri,
pub target_range: Range,
pub target_selection_range: Range,
}Expand description
Represents the connection of two locations. Provides additional metadata over normal locations, including an origin range.
Fields§
§origin_selection_range: Option<Range>Span of the origin of this link.
Used as the underlined span for mouse interaction. Defaults to the word range at the definition position.
target_uri: UriThe target resource identifier of this link.
target_range: RangeThe full target range of this link. If the target for example is a symbol then target range is the range enclosing this symbol not including leading/trailing whitespace but everything else like comments. This information is typically used to highlight the range in the editor.
target_selection_range: RangeThe range that should be selected and revealed when this link is being followed, e.g the name of a function.
Must be contained by the targetRange. See also DocumentSymbol#range
Implementations§
Trait Implementations§
Source§impl Clone for LocationLink
impl Clone for LocationLink
Source§fn clone(&self) -> LocationLink
fn clone(&self) -> LocationLink
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 LocationLink
impl Debug for LocationLink
Source§impl<'de> Deserialize<'de> for LocationLink
impl<'de> Deserialize<'de> for LocationLink
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 LocationLink
impl Hash for LocationLink
Source§impl PartialEq for LocationLink
impl PartialEq for LocationLink
Source§fn eq(&self, other: &LocationLink) -> bool
fn eq(&self, other: &LocationLink) -> bool
self and other values to be equal, and is used by ==.