Fields
buffer: Vec<u8>
width: usize
height: usize
Implementations
Trait Implementations
sourceimpl ImgBufferTrait for ImgBuffer
impl ImgBufferTrait for ImgBuffer
fn width(&self) -> usize
fn height(&self) -> usize
fn get_pixel_mut(&mut self, x: usize, y: usize) -> &mut [u8] ⓘ
fn clear(&mut self, color: &[u8; 4])
fn blend_pixel(&mut self, x: usize, y: usize, pixel: &[u8; 4], v: f32)
fn put_pixel(&mut self, x: usize, y: usize, pixel: &[u8; 4])
Auto Trait Implementations
impl RefUnwindSafe for ImgBuffer
impl Send for ImgBuffer
impl Sync for ImgBuffer
impl Unpin for ImgBuffer
impl UnwindSafe for ImgBuffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more