[][src]Trait sh1106::mode::displaymode::DisplayModeTrait

pub trait DisplayModeTrait<DI> {
    pub fn new(properties: DisplayProperties<DI>) -> Self;
pub fn release(self) -> DisplayProperties<DI>; }

Trait with core functionality for display mode switching

Required methods

pub fn new(properties: DisplayProperties<DI>) -> Self[src]

Allocate all required data and initialise display for mode

pub fn release(self) -> DisplayProperties<DI>[src]

Release resources for reuse with different mode

Loading content...

Implementors

impl<DI> DisplayModeTrait<DI> for GraphicsMode<DI> where
    DI: DisplayInterface
[src]

pub fn new(properties: DisplayProperties<DI>) -> Self[src]

Create new GraphicsMode instance

pub fn release(self) -> DisplayProperties<DI>[src]

Release all resources used by GraphicsMode

impl<DI> DisplayModeTrait<DI> for RawMode<DI> where
    DI: DisplayInterface
[src]

pub fn new(properties: DisplayProperties<DI>) -> Self[src]

Create new RawMode instance

pub fn release(self) -> DisplayProperties<DI>[src]

Release all resources used by RawMode

Loading content...