pub struct LocationLink {
pub origin_selection_range: Option<Range>,
pub target_range: Range,
pub target_selection_range: Range,
pub target_uri: DocumentUri,
}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 mouse position.
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 the targetRange. See also
DocumentSymbol#range
target_uri: DocumentUriThe target resource identifier of this link.
Trait Implementations§
Source§impl Clone for LocationLink
impl Clone for LocationLink
Source§fn clone(&self) -> LocationLink
fn clone(&self) -> LocationLink
Returns a duplicate 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 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LocationLink
impl PartialEq for LocationLink
Source§impl Serialize for LocationLink
impl Serialize for LocationLink
impl StructuralPartialEq for LocationLink
Auto Trait Implementations§
impl Freeze for LocationLink
impl RefUnwindSafe for LocationLink
impl Send for LocationLink
impl Sync for LocationLink
impl Unpin for LocationLink
impl UnwindSafe for LocationLink
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