Struct 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
§impl<T> Cast for T
impl<T> Cast for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more