pub struct Definition {
pub path: String,
pub full_path: String,
pub line: u32,
}Expand description
Contains source definition location mappings returned by an LSP textDocument/definition call.
Fields§
§path: StringA shortened path string tailored for display terminals (e.g., "library/core/src/num/uint_macros.rs").
full_path: StringThe unadulterated, absolute path prefix on the local filesystem.
line: u320-indexed line number where the source item is declared.
Auto Trait Implementations§
impl Freeze for Definition
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnsafeUnpin for Definition
impl UnwindSafe for Definition
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