Crates.io | fmt2io |
lib.rs | fmt2io |
version | 0.2.1 |
source | src |
created_at | 2018-11-06 12:58:35.115709 |
updated_at | 2024-09-06 14:54:21.49147 |
description | A bridge between std::io::Write and std::fmt::Write. |
homepage | |
repository | https://github.com/Kixunil/fmt2io |
max_upload_size | |
id | 95003 |
size | 4,863 |
A bridge between std::io::Write
and std::fmt::Write
.
Have you ever implemented a nice algorithm that generically uses fmt::Write
only to find out it doesn't work with io::Write
? Worry no more - this is the
solution!
This crate provides a simple write
function which takes your io::Write
r,
converts it to fmt::Write
r and provides it to your closure. This way, you
can easily bridge the two traits and have truly generic code.
MITNFA