pub(super) struct LightUpdateState {
pub(super) pending: PendingLightUpdates,
pub(super) in_flight_centers: FxHashMap<ChunkPos, usize>,
}Fields§
§pending: PendingLightUpdates§in_flight_centers: FxHashMap<ChunkPos, usize>Implementations§
Source§impl LightUpdateState
impl LightUpdateState
pub(super) fn has_in_flight_updates(&self) -> bool
pub(super) fn has_in_flight_update_touching_chunk( &self, chunk_pos: ChunkPos, ) -> bool
pub(super) fn track_in_flight(&mut self, centers: &[ChunkPos])
pub(super) fn finish_in_flight(&mut self, centers: &[ChunkPos])
pub(super) fn touches_chunk(&self, chunk_pos: ChunkPos) -> bool
Trait Implementations§
Source§impl Debug for LightUpdateState
impl Debug for LightUpdateState
Source§impl Default for LightUpdateState
impl Default for LightUpdateState
Source§fn default() -> LightUpdateState
fn default() -> LightUpdateState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LightUpdateState
impl RefUnwindSafe for LightUpdateState
impl Send for LightUpdateState
impl Sync for LightUpdateState
impl Unpin for LightUpdateState
impl UnsafeUnpin for LightUpdateState
impl UnwindSafe for LightUpdateState
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<>>