Struct ra_ap_ide::InlayHintLabelPart
source · pub struct InlayHintLabelPart {
pub text: String,
pub linked_location: Option<FileRange>,
pub tooltip: Option<InlayTooltip>,
}
Fields§
§text: String
§linked_location: Option<FileRange>
Source location represented by this label part. The client will use this to fetch the part’s hover tooltip, and Ctrl+Clicking the label part will navigate to the definition the location refers to (not necessarily the location itself). When setting this, no tooltip must be set on the containing hint, or VS Code will display them both.
tooltip: Option<InlayTooltip>
The tooltip to show when hovering over the inlay hint, this may invoke other actions like hover requests to show.
Trait Implementations§
source§impl Debug for InlayHintLabelPart
impl Debug for InlayHintLabelPart
Auto Trait Implementations§
impl Freeze for InlayHintLabelPart
impl RefUnwindSafe for InlayHintLabelPart
impl Send for InlayHintLabelPart
impl Sync for InlayHintLabelPart
impl Unpin for InlayHintLabelPart
impl UnwindSafe for InlayHintLabelPart
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
source§impl<T> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.