Struct irondash_texture::PixelData
source · pub struct PixelData<'a> {
pub width: i32,
pub height: i32,
pub data: &'a [u8],
}
Expand description
Pixel data is supported payload type on every platform, but the expected
PixelFormat may differ. You can PixelData::FORMAT
to query expected
pixel format.
Fields§
§width: i32
§height: i32
§data: &'a [u8]
Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PixelData<'a>
impl<'a> Send for PixelData<'a>
impl<'a> Sync for PixelData<'a>
impl<'a> Unpin for PixelData<'a>
impl<'a> UnwindSafe for PixelData<'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