Expand description
A writable, fixed-length char
buffer usable in no_std
environments.
use char_buf::CharBuf;
use core::fmt::Write;
// `CharBuf` with capacity `8`
type CharBuf8 = CharBuf<8>;
let mut w = CharBuf8::new();
write!(w, "x{:?}x", [1, 2]).unwrap();
assert_eq!(w, "x[1, 2]x");
Structs§
- A writable, fixed-length
char
buffer.