pub trait Framebuffer {
// Required methods
fn resolution(&self) -> (usize, usize);
fn present(
&self,
buf: &[u8],
w: usize,
h: usize,
full: bool,
top: usize,
rh: usize,
waveform: u32,
);
}Required Methods§
fn resolution(&self) -> (usize, usize)
fn present( &self, buf: &[u8], w: usize, h: usize, full: bool, top: usize, rh: usize, waveform: u32, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".