pub struct Image<'a> {
pub width: u32,
pub height: u32,
pub rgba: &'a [u8],
}Expand description
An RGBA8 image to draw with Surface::blit_clipped: width by
height pixels, width * 4 bytes per row, straight alpha.
Fields§
§width: u32§height: u32§rgba: &'a [u8]Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Image<'a>
impl<'a> RefUnwindSafe for Image<'a>
impl<'a> Send for Image<'a>
impl<'a> Sync for Image<'a>
impl<'a> Unpin for Image<'a>
impl<'a> UnsafeUnpin for Image<'a>
impl<'a> UnwindSafe for Image<'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