EraseWrite

Trait EraseWrite 

Source
pub trait EraseWrite {
    // Required methods
    fn write(&mut self, buf: &[u8]);
    fn flush(&mut self);
}
Expand description

All of this nonsense is to try and erase the Error type of the embedded_hal::serial::nb::Write implementor.

Required Methods§

Source

fn write(&mut self, buf: &[u8])

Source

fn flush(&mut self)

Implementors§

Source§

impl<T: Write> EraseWrite for T