pub struct Dst<'a> {
pub x0: i32,
pub y0: i32,
pub x1: i32,
pub y1: i32,
/* private fields */
}Expand description
the destination pixels of one render call: row k holds the pixels x0..x1 of row y0 + k
Fields§
§x0: i32§y0: i32§x1: i32§y1: i32Implementations§
Source§impl<'a> Dst<'a>
impl<'a> Dst<'a>
Sourcepub fn new(roi: [i32; 4], rows: Vec<&'a mut [u8]>) -> Dst<'a>
pub fn new(roi: [i32; 4], rows: Vec<&'a mut [u8]>) -> Dst<'a>
a destination from row slices (each (x1 - x0) * 4 bytes, y1 - y0 of them)
Sourcepub fn strided(roi: [i32; 4], buf: &'a mut [u8], stride: usize) -> Dst<'a>
pub fn strided(roi: [i32; 4], buf: &'a mut [u8], stride: usize) -> Dst<'a>
a destination in one buffer: row y0 + k at k * stride (e.g. a tile buffer with stride (x1 - x0) * 4)
Auto Trait Implementations§
impl<'a> !UnwindSafe for Dst<'a>
impl<'a> Forget for Dst<'a>
impl<'a> Freeze for Dst<'a>
impl<'a> RefUnwindSafe for Dst<'a>
impl<'a> Send for Dst<'a>
impl<'a> Sync for Dst<'a>
impl<'a> Unpin for Dst<'a>
impl<'a> UnsafeUnpin for Dst<'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