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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Default is no rotation (Rotate0).

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Casts the value.

Casts the value.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Casts the value.

OverflowingCasts the value.

Casts the value.

Casts the value.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Casts the value.

UnwrappedCasts the value.

Casts the value.

WrappingCasts the value.