[][src]Enum sh1106::prelude::DisplaySize

pub enum DisplaySize {
    Display128x64,
    Display128x64NoOffset,
    Display128x32,
    Display132x64,
}

Display size enumeration

Variants

Display128x64

128 by 64 pixels

Display128x64NoOffset

128 by 64 pixels without 2px X offset

Display128x32

128 by 32 pixels

Display132x64

132 by 64 pixels

Implementations

impl DisplaySize[src]

pub fn dimensions(self) -> (u8, u8)[src]

Get integral dimensions from DisplaySize

pub fn column_offset(self) -> u8[src]

Get the panel column offset from DisplaySize

Trait Implementations

impl Clone for DisplaySize[src]

impl Copy for DisplaySize[src]

Auto Trait Implementations

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.