Skip to main content

read_text_checked

Function read_text_checked 

Source
pub fn read_text_checked(path: impl AsRef<Path>) -> Result<Decoded>
Expand description

read_text with the decoder’s outcome: the text, the encoding it was decoded as, and whether any byte could not be represented. Readers that feed admission, caches or indexes use this form — a String alone cannot say that the text is not the whole source.