pub struct InlayHintLabelPart {
pub text: String,
pub linked_location: Option<LazyProperty<FileRange>>,
pub tooltip: Option<LazyProperty<InlayTooltip>>,
}Fields§
§text: String§linked_location: Option<LazyProperty<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<LazyProperty<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
Source§impl Hash for InlayHintLabelPart
impl Hash for InlayHintLabelPart
Source§impl UpmapFromRaFixture for InlayHintLabelPart
impl UpmapFromRaFixture for InlayHintLabelPart
fn upmap_from_ra_fixture( self, __analysis: &RaFixtureAnalysis, __virtual_file_id: FileId, __real_file_id: FileId, ) -> Result<Self, ()>
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, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> 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