writebuf-core 0.1.1

A writable buffer that implements fmt::Write or ufmt::uWrite
Documentation
  • Coverage
  • 60%
    3 out of 5 items documented1 out of 5 items with examples
  • Size
  • Source code size: 8.38 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.93 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 17s Average build duration of successful builds.
  • all releases: 17s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • remme123/writebuf-core
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • remme123

A writeable buffer that implements [fmt::Write] or ufmt::uWrite.

Example

use writebuf_core::WriteBuf;
use ufmt::{uwrite, uWrite};

// write to buffer
let mut buf: WriteBuf<10> = WriteBuf::from("123");
uwrite!(&mut buf, "{}", "456").ok();
uwrite!(&mut buf, "{}", 789).ok();
buf.write_str("0").ok();
buf.write_str("E").err();

// convert to ASCII string
buf.into_ascii_lossy().as_str();

ufmt

ufmt is more compact than core::fmt. By default, ufmt feature is enabled.