pub struct InlayHintsProvider;Expand description
Inlay hints provider.
Implementations§
Source§impl InlayHintsProvider
impl InlayHintsProvider
Sourcepub fn new() -> InlayHintsProvider
pub fn new() -> InlayHintsProvider
Create a new inlay hints provider.
Sourcepub fn generate_hints(
&self,
ast: &Node,
to_pos16: &impl Fn(usize) -> (u32, u32),
range: Option<WireRange>,
) -> Vec<InlayHint>
pub fn generate_hints( &self, ast: &Node, to_pos16: &impl Fn(usize) -> (u32, u32), range: Option<WireRange>, ) -> Vec<InlayHint>
Generate inlay hints for the given AST.
Trait Implementations§
Source§impl Default for InlayHintsProvider
impl Default for InlayHintsProvider
Source§fn default() -> InlayHintsProvider
fn default() -> InlayHintsProvider
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InlayHintsProvider
impl RefUnwindSafe for InlayHintsProvider
impl Send for InlayHintsProvider
impl Sync for InlayHintsProvider
impl Unpin for InlayHintsProvider
impl UnsafeUnpin for InlayHintsProvider
impl UnwindSafe for InlayHintsProvider
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