[][src]Function dia_files::read_to_string

pub fn read_to_string<R>(src: R, limit: Option<usize>) -> Result<String> where
    R: Read

Reads bytes from a source and converts them into a string

Notes

  • If data to be read exceeds limit, an error is returned. If you don't care about exceeding data, you can use Read::take().

See also

::read()