[][src]Trait smart_leds_trait::SmartLedsWrite

pub trait SmartLedsWrite {
    type Error;
    type Color;
    fn write<T, I>(&mut self, iterator: T) -> Result<(), Self::Error>
    where
        T: Iterator<Item = I>,
        I: Into<Self::Color>
; }

A trait that smart led drivers implement

The amount of time each iteration of iterator might take is undefined. Drivers, where this might lead to issues, aren't expected to work in all cases.

Associated Types

type Error

type Color

Loading content...

Required methods

fn write<T, I>(&mut self, iterator: T) -> Result<(), Self::Error> where
    T: Iterator<Item = I>,
    I: Into<Self::Color>, 

Loading content...

Implementors

Loading content...