#[non_exhaustive]pub enum PrintDirection {
LeftToRight,
RightToLeft,
TopToBottom,
BottomToTop,
}Available on crate feature
decode only.Expand description
Print direction (SWA print-direction field; 2-bit).
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 (default).
RightToLeft
Right to left.
TopToBottom
Top to bottom.
BottomToTop
Bottom to top.
Implementations§
Trait Implementations§
Source§impl Clone for PrintDirection
impl Clone for PrintDirection
Source§fn clone(&self) -> PrintDirection
fn clone(&self) -> PrintDirection
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 PrintDirection
Source§impl Debug for PrintDirection
impl Debug for PrintDirection
Source§impl Default for PrintDirection
impl Default for PrintDirection
Source§fn default() -> PrintDirection
fn default() -> PrintDirection
Returns the “default value” for a type. Read more
Source§impl Display for PrintDirection
impl Display for PrintDirection
impl Eq for PrintDirection
Source§impl PartialEq for PrintDirection
impl PartialEq for PrintDirection
Source§fn eq(&self, other: &PrintDirection) -> bool
fn eq(&self, other: &PrintDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PrintDirection
impl Serialize for PrintDirection
impl StructuralPartialEq for PrintDirection
Auto Trait Implementations§
impl Freeze for PrintDirection
impl RefUnwindSafe for PrintDirection
impl Send for PrintDirection
impl Sync for PrintDirection
impl Unpin for PrintDirection
impl UnsafeUnpin for PrintDirection
impl UnwindSafe for PrintDirection
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