pub struct PackedLightPropagationQueue {
entries: Vec<PackedLightQueueEntry>,
read_index: usize,
}Expand description
Array-backed FIFO used for ScalableLux packed light propagation entries.
Fields§
§entries: Vec<PackedLightQueueEntry>§read_index: usizeImplementations§
Source§impl PackedLightPropagationQueue
impl PackedLightPropagationQueue
Sourcepub const fn len(&self) -> usize
pub const fn len(&self) -> usize
Returns the number of packed entries that have not been dequeued yet.
Sourcepub fn enqueue(&mut self, entry: PackedLightQueueEntry)
pub fn enqueue(&mut self, entry: PackedLightQueueEntry)
Adds packed propagation work to the back of the queue.
Sourcepub fn dequeue(&mut self) -> Option<PackedLightQueueEntry>
pub fn dequeue(&mut self) -> Option<PackedLightQueueEntry>
Removes packed propagation work from the front of the queue.
Trait Implementations§
Source§impl Debug for PackedLightPropagationQueue
impl Debug for PackedLightPropagationQueue
Auto Trait Implementations§
impl Freeze for PackedLightPropagationQueue
impl RefUnwindSafe for PackedLightPropagationQueue
impl Send for PackedLightPropagationQueue
impl Sync for PackedLightPropagationQueue
impl Unpin for PackedLightPropagationQueue
impl UnsafeUnpin for PackedLightPropagationQueue
impl UnwindSafe for PackedLightPropagationQueue
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<>>