carnelian::render::generic

Trait Raster

Source
pub trait Raster:
    Add<Output = Self>
    + Clone
    + Eq {
    // Required method
    fn translate(self, translation: Vector2D<i32>) -> Self;
}
Expand description

Raster.

Required Methods§

Source

fn translate(self, translation: Vector2D<i32>) -> Self

Translate raster.

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§