Skip to main content

write

Function write 

Source
pub fn write(path: &Path, contents: impl AsRef<[u8]>) -> Result<()>
Expand description

Write bytes to a file.

On error, the returned diagnostic includes the failing path.