pub struct RawImage<'a> {
pub format: ImageFormat,
pub width: u16,
pub height: u16,
pub data: &'a [u8],
}Expand description
One 2D image: a mip of one frame, face and depth slice, or the thumbnail
Fields§
§format: ImageFormat§width: u16§height: u16§data: &'a [u8]Undecoded and tightly packed, block-compressed formats in whole 4x4 blocks
Trait Implementations§
impl<'a> Copy for RawImage<'a>
impl<'a> Eq for RawImage<'a>
impl<'a> StructuralPartialEq for RawImage<'a>
Auto Trait Implementations§
impl<'a> Freeze for RawImage<'a>
impl<'a> RefUnwindSafe for RawImage<'a>
impl<'a> Send for RawImage<'a>
impl<'a> Sync for RawImage<'a>
impl<'a> Unpin for RawImage<'a>
impl<'a> UnsafeUnpin for RawImage<'a>
impl<'a> UnwindSafe for RawImage<'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