[−][src]Struct seven_segment::SevenSegment
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.
0.2 compatibility note
This is a distinct struct due to inherent methods
Methods
impl<A, B, C, D, E, F, G, Common> SevenSegment<A, B, C, D, E, F, G, Common> where
A: OutputPin,
B: OutputPin,
C: OutputPin,
D: OutputPin,
E: OutputPin,
F: OutputPin,
G: OutputPin,
Common: Polarity,
[src]
A: OutputPin,
B: OutputPin,
C: OutputPin,
D: OutputPin,
E: OutputPin,
F: OutputPin,
G: OutputPin,
Common: Polarity,
pub fn set(&mut self, value: u8)
[src]
Sets the value of the display.
The valid values are 0-9. In case of invalid value, the display will be blank.
Trait Implementations
impl<A, B, C, D, E, F, G, Common> AsMut<SevenSegment<A, B, C, D, E, F, G, Common>> for SevenSegment<A, B, C, D, E, F, G, Common>
[src]
fn as_mut(&mut self) -> &mut SevenSegment<A, B, C, D, E, F, G, Common>
[src]
impl<A, B, C, D, E, F, G, Common> AsRef<SevenSegment<A, B, C, D, E, F, G, Common>> for SevenSegment<A, B, C, D, E, F, G, Common>
[src]
fn as_ref(&self) -> &SevenSegment<A, B, C, D, E, F, G, Common>
[src]
impl<A, B, C, D, E, F, G, Common> Borrow<SevenSegment<A, B, C, D, E, F, G, Common>> for SevenSegment<A, B, C, D, E, F, G, Common>
[src]
fn borrow(&self) -> &SevenSegment<A, B, C, D, E, F, G, Common>
[src]
impl<A, B, C, D, E, F, G, Common> BorrowMut<SevenSegment<A, B, C, D, E, F, G, Common>> for SevenSegment<A, B, C, D, E, F, G, Common>
[src]
fn borrow_mut(&mut self) -> &mut SevenSegment<A, B, C, D, E, F, G, Common>
[src]
impl<A, B, C, D, E, F, G, Common> From<SevenSegment<A, B, C, D, E, F, G, Common>> for SevenSegment<A, B, C, D, E, F, G, Common>
[src]
fn from(value: SevenSegment<A, B, C, D, E, F, G, Common>) -> Self
[src]
impl<A, B, C, D, E, F, G, Common> From<SevenSegment<A, B, C, D, E, F, G, Common>> for SevenSegment<A, B, C, D, E, F, G, Common>
[src]
fn from(value: SevenSegment<A, B, C, D, E, F, G, Common>) -> Self
[src]
Auto Trait Implementations
impl<A, B, C, D, E, F, G, Common> Send for SevenSegment<A, B, C, D, E, F, G, Common> where
A: Send,
B: Send,
C: Send,
Common: Send,
D: Send,
E: Send,
F: Send,
G: Send,
A: Send,
B: Send,
C: Send,
Common: Send,
D: Send,
E: Send,
F: Send,
G: Send,
impl<A, B, C, D, E, F, G, Common> Sync for SevenSegment<A, B, C, D, E, F, G, Common> where
A: Sync,
B: Sync,
C: Sync,
Common: Sync,
D: Sync,
E: Sync,
F: Sync,
G: Sync,
A: Sync,
B: Sync,
C: Sync,
Common: Sync,
D: Sync,
E: Sync,
F: Sync,
G: Sync,
impl<A, B, C, D, E, F, G, Common> Unpin for SevenSegment<A, B, C, D, E, F, G, Common> where
A: Unpin,
B: Unpin,
C: Unpin,
Common: Unpin,
D: Unpin,
E: Unpin,
F: Unpin,
G: Unpin,
A: Unpin,
B: Unpin,
C: Unpin,
Common: 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>,