DimSlice: impl Default

This commit is contained in:
2022-08-20 17:04:56 -07:00
parent ff4209ce78
commit 69ee2070c8
2 changed files with 2 additions and 2 deletions

View File

@@ -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,

View File

@@ -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>,