[][src]Trait gridly::grid::GridSetter

pub trait GridSetter: Grid {
#[must_use = "discarded return value of replace_unchecked; consider using set_unchecked"]
    unsafe fn replace_unchecked(
        &mut self,
        location: &Location,
        value: Self::Item
    ) -> Self::Item; unsafe fn set_unchecked(&mut self, location: &Location, value: Self::Item) { ... }
fn replace(
        &mut self,
        location: impl LocationLike,
        value: Self::Item
    ) -> Result<Self::Item, BoundsError> { ... }
fn set(
        &mut self,
        location: impl LocationLike,
        value: Self::Item
    ) -> Result<(), BoundsError> { ... } }

Required methods

#[must_use = "discarded return value of replace_unchecked; consider using set_unchecked"] unsafe fn replace_unchecked(
    &mut self,
    location: &Location,
    value: Self::Item
) -> Self::Item

Loading content...

Provided methods

unsafe fn set_unchecked(&mut self, location: &Location, value: Self::Item)

fn replace(
    &mut self,
    location: impl LocationLike,
    value: Self::Item
) -> Result<Self::Item, BoundsError>

fn set(
    &mut self,
    location: impl LocationLike,
    value: Self::Item
) -> Result<(), BoundsError>

Loading content...

Implementations on Foreign Types

impl<'_, G: GridSetter> GridSetter for &'_ mut G[src]

Loading content...

Implementors

Loading content...