[][src]Enum ssd1675::display::Rotation

pub enum Rotation {
    Rotate0,
    Rotate90,
    Rotate180,
    Rotate270,
}

Represents the physical rotation of the display relative to the native orientation.

For example the native orientation of the Inky pHAT display is a tall (portrait) 104x212 display. Rotate270 can be used to make it the right way up when attached to a Raspberry Pi Zero with the ports on the top.

Variants

Rotate0
Rotate90
Rotate180
Rotate270

Trait Implementations

impl Clone for Rotation[src]

impl Copy for Rotation[src]

impl Default for Rotation[src]

fn default() -> Self[src]

Default is no rotation (Rotate0).

Auto Trait Implementations

impl Send for Rotation

impl Sync for Rotation

impl Unpin for Rotation

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.