utf8-io defines several utilities for performing UTF-8 I/O.
-
ReadStrandWriteStrare traits which extend [Read] and [Write] providingread_strandwrite_strfunctions for reading and writing UTF-8 data. -
Utf8ReaderandUtf8WriterimplementReadStrandWriteStrand wrap arbitraryReadandWriteimplementations.Utf8Readertranslates invalid UTF-8 encodings into replacements (U+FFFD), whileUtf8Writerreports errors on invalid UTF-8 encodings. Both ensure that scalar values are never split at the end of a buffer. -
Utf8Duplexerrepresents an interactive stream and implements bothReadStrandWriteStr.
Similar crates
Utf8Reader is similar utf8-read, but differs in that it silently turns
invalid byte sequences into replacement characters rather than reporting an
error.