defmt 0.3.6

A highly efficient logging framework that targets resource-constrained devices, like microcontrollers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub(crate) struct Encoder {
    _private: (),
}

impl Encoder {
    pub(crate) const fn new() -> Self {
        Self { _private: () }
    }

    pub(crate) fn start_frame(&mut self, _write: impl FnMut(&[u8])) {}

    pub(crate) fn end_frame(&mut self, _write: impl FnMut(&[u8])) {}

    pub(crate) fn write(&mut self, data: &[u8], mut write: impl FnMut(&[u8])) {
        write(data)
    }
}