Struct oxygengine_procedural::Grid2d [−][src]
pub struct Grid2d<T> { /* fields omitted */ }
Implementations
pub fn map<F, R>(&self, f: F) -> Grid2d<R> where
F: FnMut(usize, usize, &T) -> R,
R: Clone + Send + Sync,
pub fn iter_sample(
&'a self,
range: Range<(usize, usize)>,
margin: usize
) -> impl DoubleEndedIterator + 'a
pub fn neighbor_sample(&self, (usize, usize)) -> Grid2dNeighborSample<T> where
T: Default + Copy,
pub fn get_common_areas(
first_size: (usize, usize),
second_size: (usize, usize),
second_offset: (usize, usize)
) -> Option<(Range<(usize, usize)>, Range<(usize, usize)>)>
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Grid2d<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Grid2d<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Grid2d<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Grid2d<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more