Struct sensehat_screen::frame::FrameLine [−][src]
pub struct FrameLine(_);
A single frame on the screen. Contains a private [Rgb565; 64]
.
Methods
impl FrameLine
[src]
impl FrameLine
pub fn from_slice(bytes: &[u8; 128]) -> Self
[src]
pub fn from_slice(bytes: &[u8; 128]) -> Self
Create a new FrameLine
instance, given a slice of bytes.
pub fn from_pixels(pixels: &[PixelColor; 64]) -> Self
[src]
pub fn from_pixels(pixels: &[PixelColor; 64]) -> Self
Create a new FrameLine
instance, given a slice of PixelColor
.
pub fn as_bytes(&self) -> [u8; 128]
[src]
pub fn as_bytes(&self) -> [u8; 128]
Returns the FrameLine
as a slice of bytes.
Trait Implementations
impl Copy for FrameLine
[src]
impl Copy for FrameLine
impl Clone for FrameLine
[src]
impl Clone for FrameLine
fn clone(&self) -> FrameLine
[src]
fn clone(&self) -> FrameLine
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for FrameLine
[src]
impl Default for FrameLine
impl Debug for FrameLine
[src]
impl Debug for FrameLine
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for FrameLine
[src]
impl PartialEq for FrameLine