Skip to main content

Framebuffer

Trait Framebuffer 

Source
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§

Source

fn resolution(&self) -> (usize, usize)

Source

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".

Implementors§