pub struct HoverInfo {
pub markdown: String,
pub range: Range<u32>,
}Expand description
A resolved hover: the markdown to render and the word it describes.
Fields§
§markdown: StringMarkdown body (a minimal block/inline subset; richer degrades to plain text at render).
range: Range<u32>The word range the doc describes — the popup anchors here and the widget
keeps it open while the pointer’s caret offset touches this range
(start..=end) or the pointer is over the popup itself, closing it only
after the pointer has been off both for a short hiding delay.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HoverInfo
impl RefUnwindSafe for HoverInfo
impl Send for HoverInfo
impl Sync for HoverInfo
impl Unpin for HoverInfo
impl UnsafeUnpin for HoverInfo
impl UnwindSafe for HoverInfo
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