DimSlice: impl Default
This commit is contained in:
@@ -7,7 +7,7 @@ use crate::vec::Vec3u;
|
|||||||
/// use this to wrap a flat region of memory into something which can be indexed by coordinates in
|
/// use this to wrap a flat region of memory into something which can be indexed by coordinates in
|
||||||
/// 3d space.
|
/// 3d space.
|
||||||
#[cfg_attr(feature = "fmt", derive(Debug))]
|
#[cfg_attr(feature = "fmt", derive(Debug))]
|
||||||
#[derive(Clone, PartialEq)]
|
#[derive(Clone, Default, PartialEq)]
|
||||||
pub struct DimSlice<T> {
|
pub struct DimSlice<T> {
|
||||||
dim: Vec3u,
|
dim: Vec3u,
|
||||||
items: T,
|
items: T,
|
||||||
|
@@ -7,7 +7,7 @@ use crate::vec::Vec3u;
|
|||||||
|
|
||||||
|
|
||||||
#[cfg_attr(feature = "fmt", derive(Debug))]
|
#[cfg_attr(feature = "fmt", derive(Debug))]
|
||||||
#[derive(Clone, PartialEq)]
|
#[derive(Clone, Default, PartialEq)]
|
||||||
pub struct OffsetDimSlice<T> {
|
pub struct OffsetDimSlice<T> {
|
||||||
offset: Vec3u,
|
offset: Vec3u,
|
||||||
inner: DimSlice<T>,
|
inner: DimSlice<T>,
|
||||||
|
Reference in New Issue
Block a user