[][src]Struct seven_segment::SevenSegmentPins

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,
}

Pins of the 7-sement display

Pin arrangment:

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

Fields

a: A

Upper horizontal bar

b: B

Upper right vertical bar

c: C

Lower right vertical bar

d: D

Lower horizontal bar

e: E

Lower left vertical bar

f: F

Upper left vertival bar

g: G

Middle horizontal bar

Methods

impl<A, B, C, D, E, F, G> SevenSegmentPins<A, B, C, D, E, F, G>[src]

pub fn with_common<Common: Polarity>(
    self
) -> SevenSegment<A, B, C, D, E, F, G, Common>
[src]

Constructs SevenSegment with specified polarity.

pub fn with_common_cathode(self) -> SevenSegment<A, B, C, D, E, F, G, Cathode>[src]

Shorthand for with_common::<Cathode>().

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

pub fn with_common_anode(self) -> SevenSegment<A, B, C, D, E, F, G, Anode>[src]

Shorthand for with_common::<Anode>().

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

Auto Trait Implementations

impl<A, B, C, D, E, F, G> Send for SevenSegmentPins<A, B, C, D, E, F, G> where
    A: Send,
    B: Send,
    C: Send,
    D: Send,
    E: Send,
    F: Send,
    G: Send

impl<A, B, C, D, E, F, G> Sync for SevenSegmentPins<A, B, C, D, E, F, G> where
    A: Sync,
    B: Sync,
    C: Sync,
    D: Sync,
    E: Sync,
    F: Sync,
    G: Sync

impl<A, B, C, D, E, F, G> Unpin for SevenSegmentPins<A, B, C, D, E, F, G> where
    A: Unpin,
    B: Unpin,
    C: Unpin,
    D: Unpin,
    E: Unpin,
    F: Unpin,
    G: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.