[−][src]Struct block_grid::BlockMut
Implementations
impl<'a, T, B: BlockDim> BlockMut<'a, T, B>
[src]
pub fn contains(&self, (row, col): Coords) -> bool
[src]
pub fn get(&self, coords: Coords) -> Option<&T>
[src]
pub fn get_mut(&mut self, coords: Coords) -> Option<&mut T>
[src]
pub unsafe fn get_unchecked(&self, coords: Coords) -> &T
[src]
pub unsafe fn get_unchecked_mut(&mut self, coords: Coords) -> &mut T
[src]
Trait Implementations
impl<'a, T: Debug, B: Debug + BlockDim> Debug for BlockMut<'a, T, B>
[src]
impl<'a, T, B: BlockDim> Index<(usize, usize)> for BlockMut<'a, T, B>
[src]
type Output = T
The returned type after indexing.
fn index(&self, coords: Coords) -> &Self::Output
[src]
impl<'a, T, B: BlockDim> IndexMut<(usize, usize)> for BlockMut<'a, T, B>
[src]
Auto Trait Implementations
impl<'a, T, B> Send for BlockMut<'a, T, B> where
B: Send,
T: Send,
B: Send,
T: Send,
impl<'a, T, B> Sync for BlockMut<'a, T, B> where
B: Sync,
T: Sync,
B: Sync,
T: Sync,
impl<'a, T, B> Unpin for BlockMut<'a, T, B> where
B: Unpin,
B: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,