pub struct Block {
pub colors: Vec<[u8; 4]>,
}
Fields§
§colors: Vec<[u8; 4]>
Implementations§
Source§impl Block
impl Block
pub fn new(bytes: &mut Vec<u8>) -> Self
pub fn set_pixel(&mut self, x: usize, y: usize, z: usize, value: [u8; 4])
pub fn get_pixel(&self, x: usize, y: usize, z: usize) -> [u8; 4]
pub fn get_pixel_f32(&self, x: usize, y: usize, z: usize) -> [f32; 4]
pub fn is_empty(&self, x: usize, y: usize, z: usize) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more