Skip to main content

text

Function text 

Source
pub fn text(bytes: &[u8]) -> Result<String, ReadError>
Expand description

A source file’s text: its binary form written out, or its text as it is.

§Errors

ReadError when the text isn’t UTF-8 or the binary form is malformed.