pub(super) struct SurfaceBiomeClasses {
class_of: Box<[u16]>,
below_preliminary: Box<[PartialSurfaceOutcome]>,
min_y: i32,
height: i32,
}Expand description
partition of biome ids into classes
Fields§
§class_of: Box<[u16]>§below_preliminary: Box<[PartialSurfaceOutcome]>§min_y: i32§height: i32Implementations§
Source§impl SurfaceBiomeClasses
impl SurfaceBiomeClasses
Sourcepub(super) fn new<N: DimensionNoises>() -> Option<Self>
pub(super) fn new<N: DimensionNoises>() -> Option<Self>
group by rule membership and temperature none if unused or too many sets
fn class(&self, biome_id: u16) -> Option<u16>
fn below_preliminary_outcome( &self, class: u16, block_y: i32, ) -> PartialSurfaceOutcome
Auto Trait Implementations§
impl Freeze for SurfaceBiomeClasses
impl RefUnwindSafe for SurfaceBiomeClasses
impl Send for SurfaceBiomeClasses
impl Sync for SurfaceBiomeClasses
impl Unpin for SurfaceBiomeClasses
impl UnsafeUnpin for SurfaceBiomeClasses
impl UnwindSafe for SurfaceBiomeClasses
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>