pub struct RowOps<'a> { /* private fields */ }Expand description
A list of row-local opcodes prepared for one window geometry, applied a row at a time
(e.g. by a streaming pipeline that produces the rows band by band). For every row this
gives exactly what apply gives on the whole window.
Implementations§
Source§impl<'a> RowOps<'a>
impl<'a> RowOps<'a>
Sourcepub fn new(
ops: &'a [Opcode],
width: usize,
planes: usize,
x0: usize,
full_width: usize,
full_height: usize,
value_scale: f32,
) -> Option<Self>
pub fn new( ops: &'a [Opcode], width: usize, planes: usize, x0: usize, full_width: usize, full_height: usize, value_scale: f32, ) -> Option<Self>
Prepare ops for windows width pixels wide of planes samples per pixel, whose
first column is column x0 of a full_width x full_height image (value_scale as
for apply). None when a pixel opcode is not row-local
(Opcode::is_row_local); geometric and unknown opcodes are left out, as by
apply.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RowOps<'a>
impl<'a> !UnwindSafe for RowOps<'a>
impl<'a> Freeze for RowOps<'a>
impl<'a> Send for RowOps<'a>
impl<'a> Sync for RowOps<'a>
impl<'a> Unpin for RowOps<'a>
impl<'a> UnsafeUnpin for RowOps<'a>
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
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 more