pub enum ScrollStyle {
Circular,
Linear,
}
Expand description
Style for scrolling bytes.
Variants§
Circular
Bytes are moved in circular overlapping windows.
§Example
The display has 4 digits and the bytes are HELLO
, the display will show:
+---+ +---+ +---+ +---+
| H | | E | | L | | L |
+---+ +---+ +---+ +---+
+---+ +---+ +---+ +---+
| E | | L | | L | | O |
+---+ +---+ +---+ +---+
+---+ +---+ +---+ +---+
| L | | L | | O | | |
+---+ +---+ +---+ +---+
+---+ +---+ +---+ +---+
| L | | O | | | | H |
+---+ +---+ +---+ +---+
+---+ +---+ +---+ +---+
| O | | | | H | | E |
+---+ +---+ +---+ +---+
+---+ +---+ +---+ +---+
| | | H | | E | | L |
+---+ +---+ +---+ +---+
+---+ +---+ +---+ +---+
| H | | E | | L | | L |
+---+ +---+ +---+ +---+
Linear
Bytes are moved in windows.
§Example
The display has 4 digits and the bytes are HELLO
, the display will show:
+---+ +---+ +---+ +---+
| H | | E | | L | | L |
+---+ +---+ +---+ +---+
+---+ +---+ +---+ +---+
| E | | L | | L | | O |
+---+ +---+ +---+ +---+
+---+ +---+ +---+ +---+
| L | | L | | O | | |
+---+ +---+ +---+ +---+
Trait Implementations§
Source§impl Clone for ScrollStyle
impl Clone for ScrollStyle
Source§fn clone(&self) -> ScrollStyle
fn clone(&self) -> ScrollStyle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ScrollStyle
impl Debug for ScrollStyle
Source§impl Default for ScrollStyle
impl Default for ScrollStyle
Source§fn default() -> ScrollStyle
fn default() -> ScrollStyle
Returns the “default value” for a type. Read more
Source§impl Format for ScrollStyle
impl Format for ScrollStyle
impl Copy for ScrollStyle
Auto Trait Implementations§
impl Freeze for ScrollStyle
impl RefUnwindSafe for ScrollStyle
impl Send for ScrollStyle
impl Sync for ScrollStyle
impl Unpin for ScrollStyle
impl UnwindSafe for ScrollStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more