These are both fast as they allocate a buffer of the required size to start with. let contents: String = std::fs::read_to_string("/some/file") ...
確定! 回上一頁