format-buf

Crates.ioformat-buf
lib.rsformat-buf
version1.0.0
sourcesrc
created_at2019-07-20 16:47:11.501885
updated_at2019-07-20 16:47:11.501885
descriptionDrop-in replacement for format! macro, which can write to existing buffer
homepage
repositoryhttps://github.com/matklad/format-buf
max_upload_size
id150383
size14,575
owners (github:badrobotics:owners)

documentation

README

Build Status Crates.io API reference

Overview

A drop-in replacement for std::format!, which can optionally accept a an existing String buffer.

use format_buf::format;

let mut buf = format!("Roses are {},\n", "red");
let () = format!(buf, "Violets are {}.", "blue");
assert_eq!(buf, "\
    Roses are red,\n\
    Violets are blue.\
")
Commit count: 2

cargo fmt