pub struct Blinkt { /* private fields */ }
Implementations§
Source§impl Blinkt
impl Blinkt
pub fn new() -> Result<Blinkt>
pub fn show(&self) -> Result<()>
pub fn get_pixel(&mut self, pixel: usize) -> Result<(u8, u8, u8, f32)>
pub fn set_pixel( &mut self, pixel: usize, red: u8, green: u8, blue: u8, brightness: f32, )
pub fn set_all_pixels(&mut self, red: u8, green: u8, blue: u8, brightness: f32)
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Blinkt
impl RefUnwindSafe for Blinkt
impl Send for Blinkt
impl Sync for Blinkt
impl Unpin for Blinkt
impl UnwindSafe for Blinkt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more