pub trait BufferMut<T>: Buffer<T> {
    // Required method
    fn get_mut(&mut self, x: u32, y: u32) -> &mut T;
}
Expand description

2D mutable buffer trait.

Required Methods§

source

fn get_mut(&mut self, x: u32, y: u32) -> &mut T

Get a mutable value at (x, y). This function must not panic when x < self.width() && y < self.height() (unless you want blit functions to panic). It will not be called with values outside of that range.

Implementors§

source§

impl<Slice, Item> BufferMut<Item> for GenericBuffer<Slice, Item>
where Slice: AsRef<[Item]> + AsMut<[Item]>,