pub struct ImageBuf { /* private fields */ }Expand description
Owned version of Image.
Can be loaded as FileBuf from ROM with load_file_buf
and then cast using Into::into.
Trait Implementations§
Source§impl Image for ImageBuf
Available on crate feature alloc only.
impl Image for ImageBuf
Available on crate feature
alloc only.Source§fn transparency(&self) -> Color
fn transparency(&self) -> Color
The color used for transparency. If no transparency, returns
Color::None.Auto Trait Implementations§
impl Freeze for ImageBuf
impl RefUnwindSafe for ImageBuf
impl Send for ImageBuf
impl Sync for ImageBuf
impl Unpin for ImageBuf
impl UnsafeUnpin for ImageBuf
impl UnwindSafe for ImageBuf
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