pub struct SevenSegment<A, B, C, D, E, F, G, Common> { /* private fields */ }
Expand description

Represents 7-segment display.

This struct provides you a method to show a value on the 7-segment display by setting the appropriate pins high or low.

Use SevenSegmentPins to construct it.

Implementations

Sets the value of the display.

The valid values are 0-9. In case of invalid value, the display will be blank.

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.