pub trait Printer {
type W: Write;
type M: InterruptModer;
// Required method
fn destination(&mut self) -> &mut Self::W;
// Provided methods
fn print(&mut self, args: Arguments<'_>) { ... }
fn println(&mut self, args: Arguments<'_>) { ... }
}Expand description
Generic Printer trait
Required Associated Types§
Required Methods§
Sourcefn destination(&mut self) -> &mut Self::W
fn destination(&mut self) -> &mut Self::W
Returns destination writer.
Used by print and println default
impls