pub struct Bitmap { /* private fields */ }
Implementations§
source§impl Bitmap
impl Bitmap
pub fn new(width: usize, height: usize) -> Self
pub fn width(&self) -> usize
pub fn height(&self) -> usize
pub fn get(&self, x: usize, y: usize) -> bool
pub fn at(&mut self, x: usize, y: usize) -> BitmapEntry<'_>
pub fn cursor_at(&mut self, x: usize, y: usize) -> BitmapCursor<'_>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Bitmap
impl Send for Bitmap
impl Sync for Bitmap
impl Unpin 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