Struct lsp2::LocationLink
pub struct LocationLink {
pub origin_selection_range: Option<Range>,
pub target_uri: Url,
pub target_range: Range,
pub target_selection_range: Range,
}
Expand description
Represents a link between a source and a target location.
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_uri: Url
The target resource identifier of this link.
target_range: Range
The full target range of this link.
target_selection_range: Range
The span of this link.
Trait Implementations§
§impl Clone for LocationLink
impl Clone for LocationLink
§fn clone(&self) -> LocationLink
fn clone(&self) -> LocationLink
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 more§impl Debug for LocationLink
impl Debug for LocationLink
§impl<'de> Deserialize<'de> for LocationLink
impl<'de> Deserialize<'de> for LocationLink
§fn deserialize<__D>(
__deserializer: __D
) -> Result<LocationLink, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<LocationLink, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<LocationLink> for LocationLink
impl PartialEq<LocationLink> for LocationLink
§fn eq(&self, other: &LocationLink) -> bool
fn eq(&self, other: &LocationLink) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for LocationLink
impl Serialize for LocationLink
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for LocationLink
impl StructuralEq for LocationLink
impl StructuralPartialEq for LocationLink
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.