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 Clone for FrameLine[src]
fn clone(&self) -> FrameLine[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for FrameLine[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialEq for FrameLine[src]
fn eq(&self, __arg_0: &FrameLine) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &FrameLine) -> bool[src]
This method tests for !=.