Skip to main content

AsByteSlice

Trait AsByteSlice 

Source
pub trait AsByteSlice {
    // Required method
    fn as_slice(&self) -> &[u8] ;
}
Expand description

Trait to convert a pixel to a sequence of bytes.

Required Methods§

Source

fn as_slice(&self) -> &[u8]

Returns the byte representation of a pixel.

Implementors§