#[non_exhaustive]pub enum ScrollDirection {
LeftToRight,
RightToLeft,
TopToBottom,
BottomToTop,
}Available on crate feature
decode only.Expand description
Scroll direction (SWA scroll-direction field; 2-bit). Same wire mapping as
PrintDirection.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LeftToRight
Left to right.
RightToLeft
Right to left.
TopToBottom
Top to bottom.
BottomToTop
Bottom to top (default — NTSC roll-up).
Implementations§
Trait Implementations§
Source§impl Clone for ScrollDirection
impl Clone for ScrollDirection
Source§fn clone(&self) -> ScrollDirection
fn clone(&self) -> ScrollDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScrollDirection
Source§impl Debug for ScrollDirection
impl Debug for ScrollDirection
Source§impl Default for ScrollDirection
impl Default for ScrollDirection
Source§fn default() -> ScrollDirection
fn default() -> ScrollDirection
Returns the “default value” for a type. Read more
Source§impl Display for ScrollDirection
impl Display for ScrollDirection
impl Eq for ScrollDirection
Source§impl PartialEq for ScrollDirection
impl PartialEq for ScrollDirection
Source§fn eq(&self, other: &ScrollDirection) -> bool
fn eq(&self, other: &ScrollDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScrollDirection
impl Serialize for ScrollDirection
impl StructuralPartialEq for ScrollDirection
Auto Trait Implementations§
impl Freeze for ScrollDirection
impl RefUnwindSafe for ScrollDirection
impl Send for ScrollDirection
impl Sync for ScrollDirection
impl Unpin for ScrollDirection
impl UnsafeUnpin for ScrollDirection
impl UnwindSafe for ScrollDirection
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