Struct sensehat_screen::FrameLine
[−]
[src]
pub struct FrameLine(_);
A single frame on the screen. Defaults to an inner capacity for 128 bytes, suitable for the 8x8 pixel screen.
Methods
impl FrameLine[src]
pub fn from_slice(bytes: &[u8]) -> Self[src]
Create a new FrameLine instance, given a slice of bytes.
pub fn from_pixels(pixels: &[&PixelColor]) -> Self[src]
Create a new FrameLine instance, given a slice of &PixelColor.
pub fn as_slice(&self) -> &[u8][src]
Returns the FrameLine as a slice of bytes.
Trait Implementations
impl Debug for FrameLine[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more