pub fn insert_var(&self, mutable: bool, var: &str, expect: &Expected) -> Environment {
        let mut vars = self.vars.clone();
        let expected_set = HashSet::from_iter(vec![(mutable, expect.clone())].into_iter());
        vars.insert(String::from(var), expected_set);
        Environment { vars, ..self.clone() }
    }
/// Insert a variable.
///
/// If it has a previous expected type then this is overwritten
Insert a variable.
If it has a previous expected type then this is overwritten
Insert a variable . If it has a previous expected type then this is overwritten
pub fn insert_var(&self, mutable: bool, var: &str, expect: &Expected) -> Environment {
        let mut vars = self.vars.clone();
        let expected_set = HashSet::from_iter(vec![(mutable, expect.clone())].into_iter());
        vars.insert(String::from(var), expected_set);
        Environment { vars, ..self.clone() }
    }
pub fn insert_var ( & self , mutable : bool , var : & str , expect : & Expected ) -> Environment { let mut vars = self . vars . clone ( ) ; let expected_set = HashSet :: from_iter ( vec ! [ ( mutable expect clone ( ) ) ] . into_iter ( ) ) ; vars . insert ( String :: from ( var ) , expected_set ) ; Environment { vars , .. self . clone ( ) } }
Insert a variable.
Insert a variable .
&self
mutable
bool
var
&str
expect
&Expected