pub struct InlayHint {
pub range: TextRange,
pub position: InlayHintPosition,
pub pad_left: bool,
pub pad_right: bool,
pub kind: InlayKind,
pub label: InlayHintLabel,
pub text_edit: Option<TextEdit>,
}
Fields§
§range: TextRange
The text range this inlay hint applies to.
position: InlayHintPosition
§pad_left: bool
§pad_right: bool
§kind: InlayKind
The kind of this inlay hint.
label: InlayHintLabel
The actual label to show in the inlay hint.
text_edit: Option<TextEdit>
Text edit to apply when “accepting” this inlay hint.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for InlayHint
impl Send for InlayHint
impl Sync for InlayHint
impl Unpin for InlayHint
impl UnwindSafe for InlayHint
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