pub struct TileMut<'a> { /* private fields */ }Expand description
A mutable strided view over a region of pixels.
This is the output half of Op::compute: the evaluator hands the kernel a
TileMut sized to the region it must fill.
Implementations§
Source§impl<'a> TileMut<'a>
impl<'a> TileMut<'a>
Sourcepub fn new(
region: Region,
pixel: PixelFormat,
stride: usize,
data: &'a mut [u8],
) -> Result<Self>
pub fn new( region: Region, pixel: PixelFormat, stride: usize, data: &'a mut [u8], ) -> Result<Self>
Sourcepub const fn pixel(&self) -> PixelFormat
pub const fn pixel(&self) -> PixelFormat
The pixel format of the samples in this tile.
Sourcepub fn row_mut(&mut self, y: u32) -> Option<&mut [u8]>
pub fn row_mut(&mut self, y: u32) -> Option<&mut [u8]>
The row at image coordinate y, or None if outside the region.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for TileMut<'a>
impl<'a> Freeze for TileMut<'a>
impl<'a> RefUnwindSafe for TileMut<'a>
impl<'a> Send for TileMut<'a>
impl<'a> Sync for TileMut<'a>
impl<'a> Unpin for TileMut<'a>
impl<'a> UnsafeUnpin for TileMut<'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