[−][src]Struct tray_rust::sampler::block_queue::BlockQueue
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]
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
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]
ⓘImportant traits for BlockQueueIterator<'a>
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,