pub trait WriteErase {
type Error;
type Status;
// Required methods
fn status(&self) -> Result<Self::Status, Self::Error>;
fn erase_page(&mut self, address: usize) -> Result<(), Self::Error>;
fn program_word(
&mut self,
address: usize,
value: u32,
) -> Result<(), Self::Error>;
}Required Associated Types§
Required Methods§
fn status(&self) -> Result<Self::Status, Self::Error>
fn erase_page(&mut self, address: usize) -> Result<(), Self::Error>
fn program_word( &mut self, address: usize, value: u32, ) -> Result<(), Self::Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".