pub trait Hook {
// Required method
fn analyze(&self, cx: &Context, file: &SourceFile) -> Result<()>;
// Provided method
fn hover(
&self,
cx: &Context,
file: &SourceFile,
pos: Position,
) -> Option<HoverResponse> { ... }
}Required Methods§
Provided Methods§
fn hover( &self, cx: &Context, file: &SourceFile, pos: Position, ) -> Option<HoverResponse>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".