[][src]Struct duckduckgeo::grid::Grid2D

pub struct Grid2D { /* fields omitted */ }

Methods

impl Grid2D[src]

pub fn from_str(map: Map) -> Grid2D[src]

pub fn new(dim: Vec2<GridNum>) -> Grid2D[src]

pub fn dim(&self) -> Vec2<GridNum>[src]

Important traits for CellIterator<'a>
pub fn iter(&self) -> CellIterator[src]

pub fn get(&self, p: Vec2<GridNum>) -> bool[src]

pub fn get_option(&self, p: Vec2<GridNum>) -> Option<bool>[src]

pub fn set(&mut self, p: Vec2<GridNum>, val: bool)[src]

pub fn len(&self) -> usize[src]

pub fn draw_map(&self, f: &mut Formatter) -> Result[src]

Trait Implementations

impl Debug for Grid2D[src]

Auto Trait Implementations

impl Send for Grid2D

impl Sync for Grid2D

impl Unpin for Grid2D

impl UnwindSafe for Grid2D

impl RefUnwindSafe for Grid2D

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,