write

Function write 

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

Write data to a file, creating it if it doesn’t exist, truncating it if it does.