pub struct LightPropagationQueues {
increase: LightPropagationQueue,
decrease: LightPropagationQueue,
}Expand description
Vanilla’s separate increase and decrease propagation queues.
Fields§
§increase: LightPropagationQueue§decrease: LightPropagationQueueImplementations§
Source§impl LightPropagationQueues
impl LightPropagationQueues
Sourcepub fn enqueue_decrease(&mut self, block_pos: BlockPos, entry: LightQueueEntry)
pub fn enqueue_decrease(&mut self, block_pos: BlockPos, entry: LightQueueEntry)
Enqueues decrease propagation work.
Sourcepub fn enqueue_increase(&mut self, block_pos: BlockPos, entry: LightQueueEntry)
pub fn enqueue_increase(&mut self, block_pos: BlockPos, entry: LightQueueEntry)
Enqueues increase propagation work.
Sourcepub fn dequeue_decrease(&mut self) -> Option<QueuedLightUpdate>
pub fn dequeue_decrease(&mut self) -> Option<QueuedLightUpdate>
Dequeues decrease propagation work.
Sourcepub fn dequeue_increase(&mut self) -> Option<QueuedLightUpdate>
pub fn dequeue_increase(&mut self) -> Option<QueuedLightUpdate>
Dequeues increase propagation work.
Trait Implementations§
Source§impl Debug for LightPropagationQueues
impl Debug for LightPropagationQueues
Source§impl Default for LightPropagationQueues
impl Default for LightPropagationQueues
Source§fn default() -> LightPropagationQueues
fn default() -> LightPropagationQueues
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LightPropagationQueues
impl RefUnwindSafe for LightPropagationQueues
impl Send for LightPropagationQueues
impl Sync for LightPropagationQueues
impl Unpin for LightPropagationQueues
impl UnsafeUnpin for LightPropagationQueues
impl UnwindSafe for LightPropagationQueues
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<>>