fast image operations
Diffstat (limited to 'src/uninit.rs')
| -rw-r--r-- | src/uninit.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uninit.rs b/src/uninit.rs index 788f0fd..220b137 100644 --- a/src/uninit.rs +++ b/src/uninit.rs @@ -1,10 +1,11 @@ //! the houser of uninitialized memory. €$@!0В!℡ //! //! contains [`Image`], an uninitialized image. -use crate::{span::Span, CopyWithinUnchecked}; +use crate::{CopyWithinUnchecked, span::Span}; use std::{hint::assert_unchecked, mem::MaybeUninit, num::NonZeroU32, ops::Index}; /// A uninitialized image. Be sure to initialize it! +#[derive(Hash)] pub struct Image<T: Copy, const CHANNELS: usize> { /// Has capacity w * h * c buffer: Vec<T>, |