pub trait BufferStrategy: DrawTarget {
// Required method
fn flush<T: DrawTarget<Color = Self::Color>>(
&mut self,
target: &mut T,
) -> Result<(), T::Error>;
}Required Methods§
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.