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
|
||||
/// 3d space.
|
||||
#[cfg_attr(feature = "fmt", derive(Debug))]
|
||||
#[derive(Clone, PartialEq)]
|
||||
#[derive(Clone, Default, PartialEq)]
|
||||
pub struct DimSlice<T> {
|
||||
dim: Vec3u,
|
||||
items: T,
|
||||
|
@@ -7,7 +7,7 @@ use crate::vec::Vec3u;
|
||||
|
||||
|
||||
#[cfg_attr(feature = "fmt", derive(Debug))]
|
||||
#[derive(Clone, PartialEq)]
|
||||
#[derive(Clone, Default, PartialEq)]
|
||||
pub struct OffsetDimSlice<T> {
|
||||
offset: Vec3u,
|
||||
inner: DimSlice<T>,
|
||||
|
Reference in New Issue
Block a user