--- a/rust/land2d/src/lib.rs Sat Nov 03 17:40:21 2018 +0100
+++ b/rust/land2d/src/lib.rs Sat Nov 03 18:29:58 2018 +0100
@@ -29,6 +29,10 @@
}
}
+ pub fn raw_pixels(&self) -> &[T] {
+ &self.pixels.raw_data()
+ }
+
#[inline]
pub fn width(&self) -> usize {
self.pixels.width()