Skip to main content

read_text_file_capped

Function read_text_file_capped 

Source
pub fn read_text_file_capped(path: &Path) -> Result<String, CappedReadError>
Expand description

Read a UTF-8 text file only when its size is within SOURCE_FILE_READ_MAX_BYTES.