pub trait Get {
type Output;
// Required methods
fn get_option(&self, point: Point) -> Option<&Self::Output>;
fn get_mut_option(&mut self, point: Point) -> Option<&mut Self::Output>;
}Expand description
This trait is used to get a value from a 2d array. If the operation fails, either because the point is out of bounds or because the conversion from isize to usize fails, None is returned.