Crates.io | char-buf |
lib.rs | char-buf |
version | 0.1.2 |
source | src |
created_at | 2023-10-06 11:47:02.948972 |
updated_at | 2024-02-12 03:04:39.467374 |
description | A writable, fixed-length `char` buffer usable in `no_std` environments. |
homepage | |
repository | https://gitlab.com/kkitahara/char-buf-rs |
max_upload_size | |
id | 995014 |
size | 23,835 |
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");
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
© 2023–2024 Koichi Kitahara