pub fn write<P, C>(path: P, contents: C) -> RvResult<()>where P: AsRef<Path> + Debug, C: AsRef<[u8]>,