pub struct Grid { /* private fields */ }Implementations§
Source§impl Grid
impl Grid
pub fn new(width: usize, height: usize) -> Grid
pub fn get(&self, x: usize, y: usize) -> Option<bool>
pub fn v_get(&self, pos: Vector) -> Option<bool>
pub fn get_mut(&mut self, x: usize, y: usize) -> Option<&mut bool>
pub fn v_get_mut(&mut self, pos: Vector) -> Option<&mut bool>
pub fn clear(&mut self)
Trait Implementations§
Source§impl PartialOrd for Grid
impl PartialOrd for Grid
impl StructuralPartialEq for Grid
Auto Trait Implementations§
impl Freeze for Grid
impl RefUnwindSafe for Grid
impl Send for Grid
impl Sync for Grid
impl Unpin for Grid
impl UnsafeUnpin for Grid
impl UnwindSafe for Grid
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