debian/rust-vendor/defmt/src/encoding/raw.rs
raw| 1 | pub(crate) struct Encoder { |
| 2 | _private: (), |
| 3 | } |
| 4 | |
| 5 | impl Encoder { |
| 6 | pub(crate) const fn new() -> Self { |
| 7 | Self { _private: () } |
| 8 | } |
| 9 | |
| 10 | pub(crate) fn start_frame(&mut self, _write: impl FnMut(&[u8])) {} |
| 11 | |
| 12 | pub(crate) fn end_frame(&mut self, _write: impl FnMut(&[u8])) {} |
| 13 | |
| 14 | pub(crate) fn write(&mut self, data: &[u8], mut write: impl FnMut(&[u8])) { |
| 15 | write(data) |
| 16 | } |
| 17 | } |