pub trait ProviderLookup {
// Required method
fn has_provider(&self, mode: ModeId) -> bool;
}Expand description
Renderer-supplied “is this mode registered?” probe. Each renderer
implements this trait on its own typed pane-render registry; the
host walks modes via resolve_pane_render_mode and asks the
probe whether the candidate ModeId has a provider.
Kept deliberately minimal (one boolean method) so the host’s algorithm carries no renderer-specific shape and the renderer’s registry stays free to hold native-typed fn-pointers without trait-object overhead on the paint hot path.
Required Methods§
Sourcefn has_provider(&self, mode: ModeId) -> bool
fn has_provider(&self, mode: ModeId) -> bool
True when mode has a registered pane-render provider.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".