pub trait CanvasOp {
// Required methods
fn prepare(
&self,
ts: Transform,
) -> Option<impl Future<Output = ()> + Sized + 'static>;
fn realize<'life0, 'life1, 'async_trait>(
&'life0 self,
ts: Transform,
canvas: &'life1 dyn CanvasDevice,
) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
The trait for all the operations that can be performed on some canvas element.
Required Methods§
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.