pub struct HeightMap { /* private fields */ }
Expand description
Wrapper type around a LongArray
to abstract away the details of how the HeightMaps store
their data
Several different heightmaps corresponding to 256 values compacted at 9 bits per value (lowest being 0, highest being 384, both values inclusive).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HeightMap
impl<'de> Deserialize<'de> for HeightMap
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for HeightMap
Auto Trait Implementations§
impl Freeze for HeightMap
impl RefUnwindSafe for HeightMap
impl Send for HeightMap
impl Sync for HeightMap
impl Unpin for HeightMap
impl UnwindSafe for HeightMap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more