pub struct HoverInfo {
pub name: String,
pub kind: EntryKind,
pub ty: Option<String>,
pub doc: Option<String>,
pub definition_span: Option<Span>,
}Expand description
Hover information for IDE tooltips.
Fields§
§name: StringThe name at the hover position.
kind: EntryKindThe kind of the entry.
ty: Option<String>The type of the entry (if known).
doc: Option<String>Documentation string (if available).
definition_span: Option<Span>Span of the definition site (if known).
Trait Implementations§
impl StructuralPartialEq for HoverInfo
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