[][src]Struct block_grid::Block

pub struct Block<'a, T, B: BlockDim> { /* fields omitted */ }

Implementations

impl<'a, T, B: BlockDim> Block<'a, T, B>[src]

pub fn contains(&self, (row, col): Coords) -> bool[src]

pub fn get(&self, coords: Coords) -> Option<&T>[src]

pub unsafe fn get_unchecked(&self, coords: Coords) -> &T[src]

Trait Implementations

impl<'a, T: Clone, B: Clone + BlockDim> Clone for Block<'a, T, B>[src]

impl<'a, T: Copy, B: Copy + BlockDim> Copy for Block<'a, T, B>[src]

impl<'a, T: Debug, B: Debug + BlockDim> Debug for Block<'a, T, B>[src]

impl<'a, T, B: BlockDim> Index<(usize, usize)> for Block<'a, T, B>[src]

type Output = T

The returned type after indexing.

Auto Trait Implementations

impl<'a, T, B> Send for Block<'a, T, B> where
    B: Send,
    T: Sync

impl<'a, T, B> Sync for Block<'a, T, B> where
    B: Sync,
    T: Sync

impl<'a, T, B> Unpin for Block<'a, T, B> where
    B: Unpin

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

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.