pub trait CustomPaintSource: 'static {
// Required methods
fn resume(&mut self, device_handle: &DeviceHandle);
fn suspend(&mut self);
fn render(
&mut self,
ctx: CustomPaintCtx<'_>,
width: u32,
height: u32,
scale: f64,
) -> Option<TextureHandle>;
}Required Methods§
fn resume(&mut self, device_handle: &DeviceHandle)
fn suspend(&mut self)
fn render( &mut self, ctx: CustomPaintCtx<'_>, width: u32, height: u32, scale: f64, ) -> Option<TextureHandle>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".