[][src]Trait cortex_m_log::printer::Printer

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

Loading content...

Required methods

fn destination(&mut self) -> &mut Self::W

Returns destination writer.

Used by print and println default impls

Loading content...

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

Loading content...

Implementors

impl Printer for Dummy[src]

type W = Dummy

type M = InterruptFree

impl<Mode: InterruptModer> Printer for Itm<Mode>[src]

type W = Itm

type M = Mode

fn print(&mut self, args: Arguments)[src]

fn println(&mut self, args: Arguments)[src]

impl<Mode: InterruptModer> Printer for ItmSync<Mode>[src]

type W = Itm

type M = Mode

fn print(&mut self, args: Arguments)[src]

Prints formatted output to destination

fn println(&mut self, args: Arguments)[src]

Prints formatted output to destination with newline

impl<Mode: InterruptModer, T: SemihostingComp> Printer for Semihosting<Mode, T>[src]

type W = T

type M = Mode

fn print(&mut self, args: Arguments)[src]

fn println(&mut self, args: Arguments)[src]

Loading content...