pub trait WidgetDrawApi {
// Required methods
fn is_done(&self) -> bool;
fn is_hook(&self) -> bool;
fn hook_widget(self) -> Option<WidgetRef>;
// Provided methods
fn done() -> WidgetDraw { ... }
fn hook(arg: WidgetRef) -> WidgetDraw { ... }
fn hook_above() -> WidgetDraw { ... }
}Required Methods§
fn is_done(&self) -> bool
fn is_hook(&self) -> bool
fn hook_widget(self) -> Option<WidgetRef>
Provided Methods§
fn done() -> WidgetDraw
fn hook(arg: WidgetRef) -> WidgetDraw
fn hook_above() -> WidgetDraw
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.