Struct oxygengine_procedural::Grid2d [−][src]
pub struct Grid2d<T> { /* fields omitted */ }
Implementations
pub fn copy_part(&self, range: Range<(usize, usize)>, result: &mut Grid2d<T>) where
T: Default,
[src]pub fn copy_sample(&self, (usize, usize), margin: usize, result: &mut Grid2d<T>) where
T: Default,
[src]pub fn map<F, R>(&self, f: F) -> Grid2d<R> where
F: FnMut(usize, usize, &T) -> R,
R: Clone + Send + Sync,
[src]pub fn iter_sample(
&'a self,
range: Range<(usize, usize)>,
margin: usize
) -> impl DoubleEndedIterator + 'a
[src]pub fn neighbor_sample(&self, (usize, usize)) -> Grid2dNeighborSample<T> where
T: Default + Copy,
[src]pub fn get_common_areas(
first_size: (usize, usize),
second_size: (usize, usize),
second_offset: (usize, usize)
) -> Option<(Range<(usize, usize)>, Range<(usize, usize)>)>
[src]Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Grid2d<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Grid2d<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]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,
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]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