pub struct ImageData { /* private fields */ }Implementations§
Source§impl ImageData
impl ImageData
pub fn rgba8( width: u32, height: u32, pixels: Vec<u8>, ) -> Result<Self, ImageError>
pub fn premultiplied_rgba8( width: u32, height: u32, pixels: Vec<u8>, ) -> Result<Self, ImageError>
pub fn alpha8( width: u32, height: u32, pixels: Vec<u8>, ) -> Result<Self, ImageError>
pub fn id(&self) -> u64
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn format(&self) -> ImageFormat
pub fn pixels(&self) -> &[u8] ⓘ
pub fn byte_len(&self) -> u64
Trait Implementations§
Auto Trait Implementations§
impl Forget for ImageData
impl Freeze for ImageData
impl Move for ImageData
impl RefUnwindSafe for ImageData
impl Send for ImageData
impl Sync for ImageData
impl Unpin for ImageData
impl UnsafeUnpin for ImageData
impl UnwindSafe for ImageData
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.