pub trait Document: Any + 'static {
// Required methods
fn inner(&self) -> DocGuard<'_>;
fn inner_mut(&mut self) -> DocGuardMut<'_>;
// Provided methods
fn handle_ui_event(&mut self, event: UiEvent) { ... }
fn poll(&mut self, task_context: Option<Context<'_>>) -> bool { ... }
fn id(&self) -> usize { ... }
}Expand description
Abstraction over wrappers around BaseDocument to allow for them all to
be driven by blitz-shell
Required Methods§
Provided Methods§
Sourcefn handle_ui_event(&mut self, event: UiEvent)
fn handle_ui_event(&mut self, event: UiEvent)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".