pub struct InlayHint {
pub offset: u32,
pub label: String,
pub kind: InlayHintKind,
}Expand description
An inline hint rendered at a byte offset (e.g. the : int the engine LSP omits).
Fields§
§offset: u32The byte offset at which to render the hint.
label: StringThe hint text, e.g. : int.
kind: InlayHintKindWhat kind of hint it is.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for InlayHint
impl<'de> Deserialize<'de> for InlayHint
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 InlayHint
impl StructuralPartialEq for InlayHint
Auto Trait Implementations§
impl Freeze for InlayHint
impl RefUnwindSafe for InlayHint
impl Send for InlayHint
impl Sync for InlayHint
impl Unpin for InlayHint
impl UnsafeUnpin 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