pub fn save<P: AsRef<Path>>(&self, path: P) -> Result<(), Box<dyn Error>> {
        let f = File::create(path.as_ref())?;
        serde_json::to_writer(f, &self.prepare_for_serde())?;
        Ok(())
    }
/// Saves the current VariableEnvironment to storage.
///
/// Returns the result of the execution.
Saves the current VariableEnvironment to storage.
Returns the result of the execution.
Saves the current VariableEnvironment to storage . Returns the result of the execution .
pub fn save<P: AsRef<Path>>(&self, path: P) -> Result<(), Box<dyn Error>> {
        let f = File::create(path.as_ref())?;
        serde_json::to_writer(f, &self.prepare_for_serde())?;
        Ok(())
    }
pub fn save < P : AsRef < Path > > ( & self , path : P ) -> Result < ( ) , Box < dyn Error > > { let f = File :: create ( path . as_ref ( ) ) ? ; serde_json :: to_writer ( f , & self . prepare_for_serde ( ) ) ? ; Ok ( ( ) ) }
Saves the current VariableEnvironment to storage.
Saves the current VariableEnvironment to storage .
&self
path
P
&self
path
P