Crates.io | e-write-buffer |
lib.rs | e-write-buffer |
version | 0.6.1 |
source | src |
created_at | 2021-03-27 21:39:02.016138 |
updated_at | 2024-02-20 13:21:28.530677 |
description | A no_std, const-generic, `core::fmt::Write`able buffer |
homepage | |
repository | https://github.com/RCasatta/e-write-buffer |
max_upload_size | |
id | 374423 |
size | 9,774 |
A no_std
, no allocation, core::fmt::Write
able buffer.
Usage:
use e_write_buffer::WriteBuffer;
use std::fmt::Write as _;
fn main() {
let mut buffer: WriteBuffer<20> = WriteBuffer::new();
let x = 12;
write!(buffer, "{}", x).unwrap();
assert_eq!(buffer.as_str(), "12");
}
See also heapless::String
as an alternative.