[][src]Trait grid_trait::grid3::Grid3Set

pub trait Grid3Set: Grid3 {
    fn set<I>(&mut self, coord: I, elem: Self::Item)
    where
        I: Into<Vector3<i32>>
; fn try_set<I>(
        &mut self,
        coord: I,
        elem: Self::Item
    ) -> Result<(), Self::Item>
    where
        I: Into<Vector3<i32>>
, { ... } }

2D grid write by value.

Required methods

fn set<I>(&mut self, coord: I, elem: Self::Item) where
    I: Into<Vector3<i32>>, 

Loading content...

Provided methods

fn try_set<I>(&mut self, coord: I, elem: Self::Item) -> Result<(), Self::Item> where
    I: Into<Vector3<i32>>, 

Loading content...

Implementors

impl<'a, F, I, T> Grid3Set for KolmoMutGrid3<'a, F, I, T> where
    F: Fn(I) -> &'a mut T,
    T: 'a,
    I: From<Vector3<i32>>, 
[src]

impl<G> Grid3Set for Grid3Flat<G> where
    G: Grid3 + Grid3Mut,
    <G as Grid3>::Item: Grid3 + Grid3Set,
    <G as Grid3>::XBound: Clone,
    <G as Grid3>::YBound: Clone,
    <G as Grid3>::ZBound: Clone
[src]

impl<G> Grid3Set for Grid3NewOrigin<G> where
    G: Grid3 + Grid3Set,
    <G as Grid3>::XBound: RangeBoundsPlus,
    <G as Grid3>::YBound: RangeBoundsPlus,
    <G as Grid3>::ZBound: RangeBoundsPlus
[src]

impl<G> Grid3Set for Grid3Wrapping<G> where
    G: Grid3 + Grid3Set,
    <G as Grid3>::XBound: BoundRange,
    <G as Grid3>::YBound: BoundRange,
    <G as Grid3>::ZBound: BoundRange
[src]

impl<G, X, Y, Z> Grid3Set for Grid3Slice<G, X, Y, Z> where
    G: Grid3 + Grid3Set,
    X: RangeBounds<i32> + Clone,
    Y: RangeBounds<i32> + Clone,
    Z: RangeBounds<i32> + Clone
[src]

impl<I, R, T, Fr, Fw> Grid3Set for KolmoRwGrid3<I, R, T, Fr, Fw> where
    Fr: Fn(I, &R) -> &T,
    Fw: FnMut(I, &mut R) -> &mut T,
    I: From<Vector3<i32>>, 
[src]

impl<T> Grid3Set for ArrayGrid3<T>[src]

impl<T> Grid3Set for Inline3x3x3Grid<T>[src]

impl<T> Grid3Set for T where
    T: Deref + DerefMut,
    <T as Deref>::Target: Grid3Set
[src]

Loading content...