pub struct Bitmap {
pub id: u64,
pub width: u32,
pub height: u32,
pub kind: Pixels,
pub pixels: Arc<Vec<u8>>,
}Expand description
Pixels made elsewhere. id stands for the content, so a tile hashes it and not every byte.
Fields§
§id: u64§width: u32§height: u32§kind: Pixels§pixels: Arc<Vec<u8>>Trait Implementations§
impl Eq for Bitmap
Auto Trait Implementations§
impl Freeze for Bitmap
impl RefUnwindSafe for Bitmap
impl Send for Bitmap
impl Sync for Bitmap
impl Unpin for Bitmap
impl UnsafeUnpin for Bitmap
impl UnwindSafe for Bitmap
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