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
sourceimpl 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<'_>ⓘNotable traits for BlockQueueIterator<'a>impl<'a> Iterator for BlockQueueIterator<'a> type Item = (u32, u32);
pub fn iter(&self) -> BlockQueueIterator<'_>ⓘNotable traits for BlockQueueIterator<'a>impl<'a> Iterator for BlockQueueIterator<'a> type Item = (u32, u32);
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more