pub struct RasterMipLevel {
pub width: u32,
pub height: u32,
pub data: Vec<u8>,
}Expand description
One generated mip level of an RGBA8 raster image.
Fields§
§width: u32Mip width in pixels.
height: u32Mip height in pixels.
data: Vec<u8>RGBA8 pixel data for this mip level.
Trait Implementations§
Source§impl Clone for RasterMipLevel
impl Clone for RasterMipLevel
Source§fn clone(&self) -> RasterMipLevel
fn clone(&self) -> RasterMipLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RasterMipLevel
impl RefUnwindSafe for RasterMipLevel
impl Send for RasterMipLevel
impl Sync for RasterMipLevel
impl Unpin for RasterMipLevel
impl UnsafeUnpin for RasterMipLevel
impl UnwindSafe for RasterMipLevel
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