pub struct PreliminarySurfaceCorners {
pub nw: i32,
pub ne: i32,
pub sw: i32,
pub se: i32,
}Expand description
The four preliminary-surface-level samples at a chunk’s block corners, in
world Y. Indexed by local (x, z) corner as (0,0), (16,0), (0,16),
(16,16).
Fields§
§nw: i32Corner at (chunk_min_x, chunk_min_z).
ne: i32Corner at (chunk_min_x + 16, chunk_min_z).
sw: i32Corner at (chunk_min_x, chunk_min_z + 16).
se: i32Corner at (chunk_min_x + 16, chunk_min_z + 16).
Trait Implementations§
Source§impl Clone for PreliminarySurfaceCorners
impl Clone for PreliminarySurfaceCorners
Source§fn clone(&self) -> PreliminarySurfaceCorners
fn clone(&self) -> PreliminarySurfaceCorners
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 PreliminarySurfaceCorners
Auto Trait Implementations§
impl Freeze for PreliminarySurfaceCorners
impl RefUnwindSafe for PreliminarySurfaceCorners
impl Send for PreliminarySurfaceCorners
impl Sync for PreliminarySurfaceCorners
impl Unpin for PreliminarySurfaceCorners
impl UnsafeUnpin for PreliminarySurfaceCorners
impl UnwindSafe for PreliminarySurfaceCorners
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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<>>