fmt2io

Crates.iofmt2io
lib.rsfmt2io
version0.2.1
sourcesrc
created_at2018-11-06 12:58:35.115709
updated_at2024-09-06 14:54:21.49147
descriptionA bridge between std::io::Write and std::fmt::Write.
homepage
repositoryhttps://github.com/Kixunil/fmt2io
max_upload_size
id95003
size4,863
Martin Habovštiak (Kixunil)

documentation

README

Fmt to IO

A bridge between std::io::Write and std::fmt::Write.

About

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::Writer, converts it to fmt::Writer and provides it to your closure. This way, you can easily bridge the two traits and have truly generic code.

License

MITNFA

Commit count: 2

cargo fmt