pub struct ImageData<'a> {
pub width: u32,
pub height: u32,
pub format: ImageFormat,
pub pixels: &'a [u8],
}Expand description
pixels.len() equals width * height * bytes_per_pixel(format);
the daemon dispatcher enforces it.
Fields§
§width: u32§height: u32§format: ImageFormat§pixels: &'a [u8]Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ImageData<'a>
impl<'a> RefUnwindSafe for ImageData<'a>
impl<'a> Send for ImageData<'a>
impl<'a> Sync for ImageData<'a>
impl<'a> Unpin for ImageData<'a>
impl<'a> UnsafeUnpin for ImageData<'a>
impl<'a> UnwindSafe for ImageData<'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