Struct rs_pbrt::blockqueue::BlockQueue
source · pub struct BlockQueue { /* private fields */ }
Expand description
The queue of blocks to be worked on shared immutably between worker threads.
Implementations§
source§impl BlockQueue
impl BlockQueue
sourcepub fn new(
img: (u32, u32),
dim: (u32, u32),
select_blocks: (usize, usize)
) -> BlockQueue
pub fn new( img: (u32, u32), dim: (u32, u32), select_blocks: (usize, usize) ) -> BlockQueue
Create a block queue for the image with dimensions img
.
Panics if the image is not evenly broken into blocks of dimension dim
sourcepub fn iter(&self) -> BlockQueueIterator<'_> ⓘ
pub fn iter(&self) -> BlockQueueIterator<'_> ⓘ
Get an iterator to work through the queue
Auto Trait Implementations§
impl RefUnwindSafe for BlockQueue
impl Send for BlockQueue
impl Sync for BlockQueue
impl Unpin for BlockQueue
impl UnwindSafe for BlockQueue
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