pub struct RawImage {
pub pixels: Vec<u8>,
pub image_dimensions: (usize, usize),
pub data_format: RawImageFormat,
}
Expand description
Raw image made up of raw pixels (either BRGA8 or A8)
Fields§
§pixels: Vec<u8>
§image_dimensions: (usize, usize)
§data_format: RawImageFormat
Trait Implementations§
impl Eq for RawImage
impl StructuralPartialEq for RawImage
Auto Trait Implementations§
impl Freeze for RawImage
impl RefUnwindSafe for RawImage
impl Send for RawImage
impl Sync for RawImage
impl Unpin for RawImage
impl UnwindSafe for RawImage
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)