pub struct Frame {
pub width: u32,
pub height: u32,
/* private fields */
}Expand description
An RGB8 image.
Fields§
§width: u32§height: u32Implementations§
Source§impl Frame
impl Frame
pub fn black(width: u32, height: u32) -> Self
Sourcepub fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ
pub fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ
The raw RGB8 bytes, row major, for in-place fills.
pub fn into_bytes(self) -> Vec<u8> ⓘ
Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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