rust/land2d/src/lib.rs
changeset 14142 69db1d2e4cec
parent 14122 ceda58e398e0
child 14156 7f5a591e1c43
--- 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()