Enum web_embedded_hal::components::LedColor
source · [−]pub enum LedColor {
Red,
Green,
Yellow,
Orange,
Blue,
}
Expand description
A led color.
Can be converted into a output visual by adding the boolean state:
use drogue_wasm::{OutputVisual, LedColor};
let visual: OutputVisual = true + LedColor::Red;
let transformer: fn(bool) -> OutputVisual = |state| state + LedColor::Red;
Variants
Red
Green
Yellow
Orange
Blue
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LedColor
impl Send for LedColor
impl Sync for LedColor
impl Unpin for LedColor
impl UnwindSafe for LedColor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more