pub struct NavTarget {
pub file: FileId,
pub full_range: TextRange,
pub focus_range: TextRange,
pub name: String,
pub kind: SymbolKind,
}Expand description
A navigation target (goto-definition / -declaration). Phase 2 only ever points within the same file; cross-file targets arrive in Phase 3.
Fields§
§file: FileIdThe file the target lives in.
full_range: TextRangeThe full range of the target’s declaration.
focus_range: TextRangeThe name / selection range to focus within full_range.
name: StringThe target symbol’s name.
kind: SymbolKindThe target symbol’s kind.
Trait Implementations§
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
Auto Trait Implementations§
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