pub struct SevenSegmentPins<A, B, C, D, E, F, G> {
    pub a: A,
    pub b: B,
    pub c: C,
    pub d: D,
    pub e: E,
    pub f: F,
    pub g: G,
}
Expand description

Pins of the 7-sement display

Pin arrangment:

 ________
|\__a___/|
| |    | |
|f|    |b|
| |____| |
|/  g   \|
|\______/|
| |    | |
|e|    |c|
| |____| |
|/__d___\|

Fields

a: Ab: Bc: Cd: De: Ef: Fg: G

Implementations

Constructs SevenSegment with specified polarity.

Shorthand for with_common::<Cathode>().

This prevents you from having to import Cathode or write with_common::<seven_segment::Cathode>()

Shorthand for with_common::<Anode>().

This prevents you from having to import Anode or write with_common::<seven_segment::Anode>()

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.