pub struct HoverResult {
pub ty_label: Option<String>,
pub doc: Markdown,
pub range: TextRange,
}Expand description
The result of a hover query: an inferred type / signature label plus engine docs.
Fields§
§ty_label: Option<String>The inferred type / signature rendered for display, e.g. Node or
add_child(node: Node) -> void. None when the type is Unknown (elided — the
Phase-3 cross-file seam) so we never show a placeholder type.
doc: MarkdownEngine documentation as Markdown. Empty when no doc XML is available.
range: TextRangeThe source range the hover applies to (the hovered token / expression).
Trait Implementations§
Source§impl Clone for HoverResult
impl Clone for HoverResult
Source§fn clone(&self) -> HoverResult
fn clone(&self) -> HoverResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HoverResult
impl Debug for HoverResult
Source§impl<'de> Deserialize<'de> for HoverResult
impl<'de> Deserialize<'de> for HoverResult
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
impl Eq for HoverResult
Source§impl PartialEq for HoverResult
impl PartialEq for HoverResult
Source§fn eq(&self, other: &HoverResult) -> bool
fn eq(&self, other: &HoverResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HoverResult
impl Serialize for HoverResult
impl StructuralPartialEq for HoverResult
Auto Trait Implementations§
impl Freeze for HoverResult
impl RefUnwindSafe for HoverResult
impl Send for HoverResult
impl Sync for HoverResult
impl Unpin for HoverResult
impl UnsafeUnpin for HoverResult
impl UnwindSafe for HoverResult
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