pub fn store_local_values(
        &self,
        names: &[Name],
    ) -> Vec<(Name, Option<Value>)> {
        let vars = self.variables.lock().unwrap();
        names
            .iter()
            .map(|name| (name.clone(), vars.get(name).cloned()))
            .collect()
    }
/// Copy a set of local variables to a temporary holder
Copy a set of local variables to a temporary holder
Copy a set of local variables to a temporary holder
pub fn store_local_values(
        &self,
        names: &[Name],
    ) -> Vec<(Name, Option<Value>)> {
        let vars = self.variables.lock().unwrap();
        names
            .iter()
            .map(|name| (name.clone(), vars.get(name).cloned()))
            .collect()
    }
pub fn store_local_values ( & self , names : & [ Name ] , ) -> Vec < ( Name , Option < Value > ) > { let vars = self . variables . lock ( ) . unwrap ( ) ; names . iter ( ) . map ( | name | ( name . clone ( ) , vars . get ( name ) . cloned ( ) ) ) . collect ( ) }
Copy a set of local variables to a temporary holder
Copy a set of local variables to a temporary holder
&self
names
&[Name]
&self
names
&[Name]