Trait simple_blit::Buffer
source · pub trait Buffer<T> {
// Required methods
fn width(&self) -> u32;
fn height(&self) -> u32;
fn get(&self, x: u32, y: u32) -> &T;
}Expand description
2D immutable buffer trait.
pub trait Buffer<T> {
// Required methods
fn width(&self) -> u32;
fn height(&self) -> u32;
fn get(&self, x: u32, y: u32) -> &T;
}2D immutable buffer trait.