Skip to main content

Clear

Trait Clear 

Source
pub trait Clear<SPI: SpiDevice, ERROR> {
    // Required method
    async fn clear(&mut self, spi: &mut SPI) -> Result<(), ERROR>;
}
Expand description

Displays that can be cleared with their base color.

Required Methods§

Source

async fn clear(&mut self, spi: &mut SPI) -> Result<(), ERROR>

Fills the display with a specific color.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<HW> Clear<<HW as SpiHw>::Spi, <HW as ErrorHw>::Error> for Epd7In5V2<HW, StateReady>
where HW: BusyHw + DcHw + SpiHw + ErrorHw + DelayHw, HW::Error: From<<HW::Busy as ErrorType>::Error> + From<<HW::Dc as ErrorType>::Error> + From<<HW::Spi as ErrorType>::Error>,