pub fn as_slice(&self) -> &[RGB8] {
        // NOTE(unsafe): Creates a shared reference to the same underlying data,
        // NOTE(unsafe): which we know is tightly packed and so we can compute how many RGB8 pixel is in there.
        unsafe { core::slice::from_raw_parts(self as *const _ as *const RGB8,
                                             core::mem::size_of::<Self>() / core::mem::size_of::<RGB8>()) }
    }
/// Return a slice that aliases the same memory.
Return a slice that aliases the same memory.
Return a slice that aliases the same memory .
pub fn as_slice(&self) -> &[RGB8] {
        // NOTE(unsafe): Creates a shared reference to the same underlying data,
        // NOTE(unsafe): which we know is tightly packed and so we can compute how many RGB8 pixel is in there.
        unsafe { core::slice::from_raw_parts(self as *const _ as *const RGB8,
                                             core::mem::size_of::<Self>() / core::mem::size_of::<RGB8>()) }
    }
pub fn as_slice ( & self ) -> & [ RGB8 ] { // NOTE(unsafe): Creates a shared reference to the same underlying data, // NOTE(unsafe): which we know is tightly packed and so we can compute how many RGB8 pixel is in there. unsafe { core :: slice :: from_raw_parts ( self as * const _ as * const RGB8 , core :: mem :: size_of :: < Self > ( ) / core :: mem :: size_of :: < RGB8 > ( ) ) } }
Return a slice that aliases the same memory.
Return a slice that aliases the same memory .
&self
&self