Trait cortex_m_log::printer::Printer [−][src]
pub trait Printer {
type W: Write;
type M: InterruptModer;
fn destination(&mut self) -> &mut Self::W;
fn print(&mut self, args: Arguments) { ... }
fn println(&mut self, args: Arguments) { ... }
}Generic Printer trait
Associated Types
type W: Write
type M: InterruptModer
Required Methods
fn destination(&mut self) -> &mut Self::W
Returns destination writer.
Used by print and println default
impls
Provided Methods
fn print(&mut self, args: Arguments)
Prints formatted output to destination
fn println(&mut self, args: Arguments)
Prints formatted output to destination with newline
Implementors
impl Printer for Dummy type W = Dummy; type M = InterruptFree;impl<Mode: InterruptModer> Printer for Itm<Mode> type W = Itm; type M = Mode;impl<Mode: InterruptModer, T: SemihostingComp> Printer for Semihosting<Mode, T> type W = T; type M = Mode;