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 FrameLinepub fn from_slice(bytes: &[u8; 128]) -> Self[src]
pub fn from_slice(bytes: &[u8; 128]) -> SelfCreate 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]) -> SelfCreate 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 FrameLineimpl Clone for FrameLine[src]
impl Clone for FrameLinefn clone(&self) -> FrameLine[src]
fn clone(&self) -> FrameLineReturns 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 FrameLineimpl Debug for FrameLine[src]
impl Debug for FrameLinefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for FrameLine[src]
impl PartialEq for FrameLine