Struct seven_segment::SevenSegmentPins
source · 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: A
b: B
c: C
d: D
e: E
f: F
g: G
Implementations
sourceimpl<A, B, C, D, E, F, G> SevenSegmentPins<A, B, C, D, E, F, G>
impl<A, B, C, D, E, F, G> SevenSegmentPins<A, B, C, D, E, F, G>
sourcepub fn with_common<Common: Polarity>(
self
) -> SevenSegment<A, B, C, D, E, F, G, Common>
pub fn with_common<Common: Polarity>(
self
) -> SevenSegment<A, B, C, D, E, F, G, Common>
Constructs SevenSegment
with specified polarity.
sourcepub fn with_common_cathode(self) -> SevenSegment<A, B, C, D, E, F, G, Cathode>
pub fn with_common_cathode(self) -> SevenSegment<A, B, C, D, E, F, G, Cathode>
Shorthand for with_common::<Cathode>()
.
This prevents you from having to import Cathode
or write
with_common::<seven_segment::Cathode>()
sourcepub fn with_common_anode(self) -> SevenSegment<A, B, C, D, E, F, G, Anode>
pub fn with_common_anode(self) -> SevenSegment<A, B, C, D, E, F, G, Anode>
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> RefUnwindSafe for SevenSegmentPins<A, B, C, D, E, F, G>where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
D: RefUnwindSafe,
E: RefUnwindSafe,
F: RefUnwindSafe,
G: RefUnwindSafe,
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,
impl<A, B, C, D, E, F, G> UnwindSafe for SevenSegmentPins<A, B, C, D, E, F, G>where
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
D: UnwindSafe,
E: UnwindSafe,
F: UnwindSafe,
G: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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