fast image operations
Diffstat (limited to 'src/indexed.rs')
| -rw-r--r-- | src/indexed.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/indexed.rs b/src/indexed.rs index 426565d..e0f4412 100644 --- a/src/indexed.rs +++ b/src/indexed.rs @@ -107,6 +107,7 @@ impl<I, P> IndexedImage<I, P> { .ok_or("not all indexes are in palette") } } + impl<P, I: uint> IndexedImage<Box<[MaybeUninit<I>]>, P> { /// Assumes this MU image is, in fact, initialized. You must be very sure that it is. Also, none of the pixels can be out of bounds. pub unsafe fn assume_init(self) -> IndexedImage<Box<[I]>, P> { |