pub struct HoverCx {
pub doc: DocId,
pub revision: u64,
pub position: Point,
pub word: Range<u32>,
pub lookback: String,
}Expand description
A revision-stamped hover request — everything the provider may read.
Fields§
§doc: DocIdWhich document the request is for.
revision: u64The document revision the request was snapshotted at.
position: PointThe point under the pointer, clipped to a valid char boundary.
word: Range<u32>Absolute byte range of the word under the pointer, computed with
is_completion_word_char — empty ⇒ the query is skipped.
lookback: StringThe preceding source text, back the same number of lines as
CompletionCx, giving the classifier the context the spec lookup needs
(dotted receiver, in-call position).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HoverCx
impl RefUnwindSafe for HoverCx
impl Send for HoverCx
impl Sync for HoverCx
impl Unpin for HoverCx
impl UnsafeUnpin for HoverCx
impl UnwindSafe for HoverCx
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