pub struct GoToDefinitionResult {
pub name: String,
pub definition_spans: Vec<Span>,
pub is_local: bool,
}Expand description
The result of a go-to-definition lookup.
Fields§
§name: StringName that was queried.
definition_spans: Vec<Span>The span(s) of the definition site.
is_local: boolWhether the definition is in the same file.
Implementations§
Trait Implementations§
Source§impl Clone for GoToDefinitionResult
impl Clone for GoToDefinitionResult
Source§fn clone(&self) -> GoToDefinitionResult
fn clone(&self) -> GoToDefinitionResult
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 GoToDefinitionResult
impl Debug for GoToDefinitionResult
Source§impl PartialEq for GoToDefinitionResult
impl PartialEq for GoToDefinitionResult
impl StructuralPartialEq for GoToDefinitionResult
Auto Trait Implementations§
impl Freeze for GoToDefinitionResult
impl RefUnwindSafe for GoToDefinitionResult
impl Send for GoToDefinitionResult
impl Sync for GoToDefinitionResult
impl Unpin for GoToDefinitionResult
impl UnsafeUnpin for GoToDefinitionResult
impl UnwindSafe for GoToDefinitionResult
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