e-write-buffer

Crates.ioe-write-buffer
lib.rse-write-buffer
version0.6.1
sourcesrc
created_at2021-03-27 21:39:02.016138
updated_at2024-02-20 13:21:28.530677
descriptionA no_std, const-generic, `core::fmt::Write`able buffer
homepage
repositoryhttps://github.com/RCasatta/e-write-buffer
max_upload_size
id374423
size9,774
Riccardo Casatta (RCasatta)

documentation

https://docs.rs/e-write-buffer

README

MIT license Crates Released API docs

A no_std, no allocation, core::fmt::Writeable 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.

Commit count: 8

cargo fmt