pub enum ReferencesOutcome {
Found {
symbol: String,
locations: Vec<Location>,
},
NoServers,
}Expand description
Result of a gr (LSP references) request. Carries the
symbol-under-cursor verbatim so the rendered help buffer’s
title reads References for "foo" and the user has
confirmation of what they searched for.
Variants§
Found
Merged + deduped reference list across attached servers. May be empty (Found(symbol, [])) when servers know about the symbol but it has no other call sites.
NoServers
The buffer’s URI maps to no attached servers.
Trait Implementations§
Source§impl Clone for ReferencesOutcome
impl Clone for ReferencesOutcome
Source§fn clone(&self) -> ReferencesOutcome
fn clone(&self) -> ReferencesOutcome
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ReferencesOutcome
impl Freeze for ReferencesOutcome
impl Send for ReferencesOutcome
impl Sync for ReferencesOutcome
impl Unpin for ReferencesOutcome
impl UnsafeUnpin for ReferencesOutcome
impl UnwindSafe for ReferencesOutcome
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<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