pub struct CanvasView<'a> {
pub x: i64,
pub y: i64,
pub width: usize,
pub height: usize,
pub rgba: &'a [u8],
pub coverage: &'a [u8],
}Expand description
A canvas region resident in memory: RGBA pixels with coverage, origin in world pixels.
Fields§
§x: i64§y: i64§width: usize§height: usize§rgba: &'a [u8]§coverage: &'a [u8]Coverage bits, one per pixel, row-major (the compositor’s layout).
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CanvasView<'a>
impl<'a> RefUnwindSafe for CanvasView<'a>
impl<'a> Send for CanvasView<'a>
impl<'a> Sync for CanvasView<'a>
impl<'a> Unpin for CanvasView<'a>
impl<'a> UnsafeUnpin for CanvasView<'a>
impl<'a> UnwindSafe for CanvasView<'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