Trait crankit_image::DrawImage
source · pub trait DrawImage<I> {
// Required method
fn draw_with_flip(
&self,
image: &I,
top_left: impl Into<[i32; 2]>,
flip: impl Into<[bool; 2]>
);
// Provided method
fn draw(&self, image: &I, top_left: impl Into<[i32; 2]>) { ... }
}
Expand description
Ability to draw an image on screen
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.