[][src]Trait gridly::grid::BaseGridMut

pub trait BaseGridMut: BaseGrid {
    unsafe fn get_unchecked_mut(&mut self, loc: &Location) -> &mut Self::Item;

    unsafe fn set_unchecked(&mut self, loc: &Location, value: Self::Item) { ... }
}

Required methods

unsafe fn get_unchecked_mut(&mut self, loc: &Location) -> &mut Self::Item

Get a mutable reference to a cell, without doing bounds checking. Implementors of this method are allowed to assume that bounds checking has already been performed on the location.

Loading content...

Provided methods

unsafe fn set_unchecked(&mut self, loc: &Location, value: Self::Item)

Set the value of a cell in a location, without bounds checking the location.

Loading content...

Implementations on Foreign Types

impl<'a, G: BaseGridMut> BaseGridMut for &'a mut G[src]

Loading content...

Implementors

Loading content...