pub struct PreliminarySurfaceStore {
slots: Box<[AtomicU64]>,
}Expand description
shared surface levels, one atomic word per entry reads see a complete entry or miss; collisions just mean recomputing
Fields§
§slots: Box<[AtomicU64]>Implementations§
Source§impl PreliminarySurfaceStore
impl PreliminarySurfaceStore
Sourcepub fn level<N: DimensionNoises>(
&self,
noises: &N,
cache: &mut N::ColumnCache,
x: i32,
z: i32,
) -> i32
pub fn level<N: DimensionNoises>( &self, noises: &N, cache: &mut N::ColumnCache, x: i32, z: i32, ) -> i32
Preliminary surface level of the quart column containing block
(x, z), evaluated through cache on a miss.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreliminarySurfaceStore
impl RefUnwindSafe for PreliminarySurfaceStore
impl Send for PreliminarySurfaceStore
impl Sync for PreliminarySurfaceStore
impl Unpin for PreliminarySurfaceStore
impl UnsafeUnpin for PreliminarySurfaceStore
impl UnwindSafe for PreliminarySurfaceStore
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<>>