cortex-m-log 0.8.0

Logging facilities for Cortex-M processors
Documentation
//! Dummy module

use core::fmt;

/// Dummy printer
pub struct Dummy {
    inner: crate::destination::Dummy,
}

impl Dummy {
    /// Create dummy printer
    pub const fn new() -> Self {
        Dummy { inner: crate::destination::Dummy }
    }
}

impl super::Printer for Dummy {
    type W = crate::destination::Dummy;
    type M = crate::modes::InterruptFree;

    #[inline]
    fn destination(&mut self) -> &mut Self::W {
        &mut self.inner
    }

    #[inline]
    fn print(&mut self, _: fmt::Arguments) {}

    #[inline]
    fn println(&mut self, _: fmt::Arguments) {}
}