nextest_runner

Module write_str

source
Expand description

Support for string-only writes.

There are potential situations where nextest needs to abstract over multiple kinds of writers, but some of them do not accept arbitrary bytes – they must be valid UTF-8.

This is similar to std::fmt::Write, but it returns std::io::Error instead for better error handling.

Traits§

  • A trait that abstracts over writing strings to a writer.