custom-print 1.0.0

Define custom println and dbg macros in wasm and other targets
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// A trait for objects which can write bytes returning a specific output.
///
/// This trait is used by [`IoWriter`].
///
/// [`IoWriter`]: struct.IoWriter.html
pub trait WriteBytes {
    /// The resulting type after writing.
    type Output;

    /// Performs byte writing.
    fn write_bytes(&mut self, buf: &[u8]) -> Self::Output;
}