Function utf8_io::copy_str

source ·
pub fn copy_str<R: ReadStr + ?Sized, W: WriteStr + ?Sized>(
    reader: &mut R,
    writer: &mut W
) -> Result<u64>
Expand description

Like std::io::copy, but for streams that can operate directly on strings, so we can avoid re-validating them as UTF-8.