[][src]Function hina::fs::write_all_bytes

pub fn write_all_bytes(path: impl AsRef<Path>, data: &[u8]) -> Result<(), Error>

creates a new file, writes the specified byte slice to the file, and then closes the file. if the target file already exists, it is overwritten.