Skip to main content

Hook

Trait Hook 

Source
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§

Source

fn analyze(&self, cx: &Context, file: &SourceFile) -> Result<()>

Provided Methods§

Source

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".

Implementors§