#[repr(C)]pub struct PixelBufferC {
pub data: *mut u8,
pub width: usize,
pub height: usize,
pub byte_size: usize,
}Fields§
§data: *mut u8Raw pixel data in BGRA format
width: usizeWidth of the buffer
height: usizeHeight of the buffer
byte_size: usizeTotal byte size (width * height * 4)
Trait Implementations§
Source§impl Clone for PixelBufferC
impl Clone for PixelBufferC
Source§fn clone(&self) -> PixelBufferC
fn clone(&self) -> PixelBufferC
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 PixelBufferC
impl RefUnwindSafe for PixelBufferC
impl !Send for PixelBufferC
impl !Sync for PixelBufferC
impl Unpin for PixelBufferC
impl UnwindSafe for PixelBufferC
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