pub trait SmartLedsWrite {
    type Error;
    type Color;

    // Required method
    fn write<T, I>(&mut self, iterator: T) -> Result<(), Self::Error>
       where T: IntoIterator<Item = I>,
             I: Into<Self::Color>;
}
Expand description

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.

Required Associated Types§

Required Methods§

source

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

Object Safety§

This trait is not object safe.

Implementors§