/// Write the state of this data provider to a file at `path`.
Write the state of this data provider to a file at `path`.
Write the state of this data provider to a file at ` path ` .
pub fn write_to_file<P>(&self, path: P)
    where
        P: AsRef<Path>,
    {
        write_atomically(path, |f| {
            let mut buf: Vec<u8> = vec![];
            self.encode(&mut buf);
            f.write_all(buf.as_slice())
        })
        .expect("Could not write to path.");
    }
pub fn write_to_file < P > ( & self , path : P ) where P : AsRef < Path > , { write_atomically ( path , | f | { let mut buf : Vec < u8 > = vec ! [ ] ; self . encode ( & mut buf ) ; f . write_all ( buf . as_slice ( ) ) } ) . expect ( " " ) ; }
Write the state of this data provider to a file at `path`.
Write the state of this data provider to a file at ` path ` .
&self
path
P