pub struct ReferencesOrigin {
pub uri: String,
pub line: u32,
pub character: u32,
pub symbol: String,
}Expand description
Where the references query was issued from.
Kept per-view so gr can re-run the same query. It must not be
re-derived from the cursor at refresh time: by then the cursor is
inside the multibuffer, and re-querying there would ask about
whatever symbol happens to sit under it — a different question, with
a plausible-looking wrong answer.
Fields§
§uri: StringThe document the query was issued against.
line: u320-based line within that document.
character: u320-based UTF-16 character offset (LSP’s own convention).
symbol: StringThe symbol text, for the headerline. May be empty when the word under the cursor could not be determined.
Trait Implementations§
Source§impl Clone for ReferencesOrigin
impl Clone for ReferencesOrigin
Source§fn clone(&self) -> ReferencesOrigin
fn clone(&self) -> ReferencesOrigin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReferencesOrigin
impl Debug for ReferencesOrigin
impl Eq for ReferencesOrigin
Source§impl PartialEq for ReferencesOrigin
impl PartialEq for ReferencesOrigin
impl StructuralPartialEq for ReferencesOrigin
Auto Trait Implementations§
impl Freeze for ReferencesOrigin
impl RefUnwindSafe for ReferencesOrigin
impl Send for ReferencesOrigin
impl Sync for ReferencesOrigin
impl Unpin for ReferencesOrigin
impl UnsafeUnpin for ReferencesOrigin
impl UnwindSafe for ReferencesOrigin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more