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
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>>
Object Safety§
This trait is not object safe.