pub trait DisplayDevice {
// Required methods
fn create_bitmap(&mut self) -> Box<dyn Bitmap + 'static>;
fn write(
&mut self,
bitmap: &mut Box<dyn Bitmap + 'static>,
) -> Result<(), PixelabError>;
}Required Methods§
fn create_bitmap(&mut self) -> Box<dyn Bitmap + 'static>
fn write( &mut self, bitmap: &mut Box<dyn Bitmap + 'static>, ) -> Result<(), PixelabError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".