[−][src]Struct seven_segment::SevenSegmentPins
Pins of the 7-sement display
Pin arrangment:
________
|\__a___/|
| | | |
|f| |b|
| |____| |
|/ g \|
|\______/|
| | | |
|e| |c|
| |____| |
|/__d___\|
0.2 compatibility note
This is a distinct struct due to inherent methods
Fields
a: A
b: B
c: C
d: D
e: E
f: F
g: G
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]
self
) -> SevenSegment<A, B, C, D, E, F, G, Common>
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,
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,
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,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,