Enum HeightmapType
#[non_exhaustive]pub enum HeightmapType {
WorldSurfaceWg,
WorldSurface,
OceanFloorWg,
OceanFloor,
MotionBlocking,
MotionBlockingNoLeaves,
}Expand description
The vanilla heightmap opacity predicates used by structure queries.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
WorldSurfaceWg
Highest non-air block during world generation.
WorldSurface
Highest non-air block.
OceanFloorWg
Highest motion-blocking block during world generation.
OceanFloor
Highest motion-blocking block.
MotionBlocking
Highest motion-blocking block or fluid.
MotionBlockingNoLeaves
Motion-blocking block or fluid, ignoring leaves.
Trait Implementations§
§impl Clone for HeightmapType
impl Clone for HeightmapType
§fn clone(&self) -> HeightmapType
fn clone(&self) -> HeightmapType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HeightmapType
§impl Debug for HeightmapType
impl Debug for HeightmapType
impl Eq for HeightmapType
§impl PartialEq for HeightmapType
impl PartialEq for HeightmapType
impl StructuralPartialEq for HeightmapType
Auto Trait Implementations§
impl Freeze for HeightmapType
impl RefUnwindSafe for HeightmapType
impl Send for HeightmapType
impl Sync for HeightmapType
impl Unpin for HeightmapType
impl UnsafeUnpin for HeightmapType
impl UnwindSafe for HeightmapType
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