[][src]Struct tray_rust::sampler::block_queue::BlockQueue

pub struct BlockQueue { /* fields omitted */ }

The queue of blocks to be worked on shared immutably between worker threads.

Methods

impl BlockQueue[src]

pub fn new(
    img: (u32, u32),
    dim: (u32, u32),
    select_blocks: (usize, usize)
) -> BlockQueue
[src]

Create a block queue for the image with dimensions img. Panics if the image is not evenly broken into blocks of dimension dim

pub fn block_dim(&self) -> (u32, u32)[src]

Get the dimensions of an individual block in the queue

Important traits for BlockQueueIterator<'a>
pub fn iter(&self) -> BlockQueueIterator[src]

Get an iterator to work through the queue

pub fn len(&self) -> usize[src]

Get the length of the queue

pub fn is_empty(&self) -> bool[src]

Check if the queue is empty

Auto Trait Implementations

impl Send for BlockQueue

impl Sync for BlockQueue

impl Unpin for BlockQueue

impl UnwindSafe for BlockQueue

impl RefUnwindSafe for BlockQueue

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T[src]