(path: P)
| 20 | } |
| 21 | |
| 22 | pub fn load_string<P: ResPathSource>(path: P) -> io::Result<String> { |
| 23 | let bytes = load_bytes(path)?; |
| 24 | String::from_utf8(bytes).map_err(|err| io::Error::new(io::ErrorKind::InvalidData, err)) |
| 25 | } |
| 26 | |
| 27 | pub fn save_bytes<P: ResPathSource>(path: P, data: &[u8]) -> io::Result<()> { |
| 28 | let path = path.as_res_path_str(); |
nothing calls this directly
no test coverage detected