Trait sourceview5::prelude::HoverProviderExt

source ·
pub trait HoverProviderExt: IsA<HoverProvider> + Sealed + 'static {
    // Provided methods
    fn populate_async<P: FnOnce(Result<(), Error>) + 'static>(
        &self,
        context: &HoverContext,
        display: &HoverDisplay,
        cancellable: Option<&impl IsA<Cancellable>>,
        callback: P,
    ) { ... }
    fn populate_future(
        &self,
        context: &HoverContext,
        display: &HoverDisplay,
    ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>> { ... }
}
Expand description

Trait containing all HoverProvider methods.

§Implementors

HoverProvider

Provided Methods§

source

fn populate_async<P: FnOnce(Result<(), Error>) + 'static>( &self, context: &HoverContext, display: &HoverDisplay, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )

source

fn populate_future( &self, context: &HoverContext, display: &HoverDisplay, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>

Object Safety§

This trait is not object safe.

Implementors§