Skip to main content

BufferStrategy

Trait BufferStrategy 

Source
pub trait BufferStrategy: DrawTarget {
    // Required method
    fn flush<T: DrawTarget<Color = Self::Color>>(
        &mut self,
        target: &mut T,
    ) -> Result<(), T::Error>;
}

Required Methods§

Source

fn flush<T: DrawTarget<Color = Self::Color>>( &mut self, target: &mut T, ) -> Result<(), T::Error>

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.

Implementors§

Source§

impl<C, const N: usize, const W: usize, const H: usize> BufferStrategy for DoubleBuffer<C, N, W, H>
where C: RgbColor,

Source§

impl<C, const N: usize, const W: usize, const H: usize> BufferStrategy for SingleBuffer<C, N, W, H>
where C: RgbColor,