[][src]Struct descartes::Grid

pub struct Grid<M: Hash + Eq + Clone> {
    pub cell_width: N,
    pub min_bounds: CellCoords,
    pub max_bounds: CellCoords,
    // some fields omitted
}

Fields

cell_width: Nmin_bounds: CellCoordsmax_bounds: CellCoords

Methods

impl<M: Hash + Eq + Clone> Grid<M>[src]

pub fn new(cell_width: N) -> Grid<M>[src]

pub fn insert_unchecked<S: GridShape>(&mut self, member: M, shape: &S)[src]

pub fn insert_visiting<S: GridShape, F: FnMut(&CellContent<M>)>(
    &mut self,
    member: M,
    shape: &S,
    visitor: F
)
[src]

pub fn visit<S: GridShape, F: FnMut(&CellContent<M>)>(
    &self,
    shape: &S,
    visitor: F
)
[src]

pub fn retain<S: GridShape, F: FnMut(&mut M) -> bool>(
    &mut self,
    shape: S,
    predicate: F
)
[src]

Trait Implementations

impl<M: Clone + Hash + Eq + Clone> Clone for Grid<M>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<M> Send for Grid<M> where
    M: Send

impl<M> Sync for Grid<M> where
    M: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>,