pub fn resolve_fully(self, variables: &HashMap<VarName, PrimVal>) -> Result<PrimVal> {
        self.into_iter()
            .map(|element| match element {
                AttrValElement::Primitive(x) => Ok(x),
                AttrValElement::Expr(expr) => expr.eval(variables),
            })
            .collect()
    }
/// resolve fully.
/// As the variables here have to be primitive values,
/// this enforces that var-refs are not linking to other variables.
resolve fully.
As the variables here have to be primitive values,
this enforces that var-refs are not linking to other variables.
resolve fully . As the variables here have to be primitive values this enforces that var - refs are not linking to other variables .
pub fn resolve_fully(self, variables: &HashMap<VarName, PrimVal>) -> Result<PrimVal> {
        self.into_iter()
            .map(|element| match element {
                AttrValElement::Primitive(x) => Ok(x),
                AttrValElement::Expr(expr) => expr.eval(variables),
            })
            .collect()
    }
pub fn resolve_fully ( self , variables : & HashMap < VarName , PrimVal > ) -> Result < PrimVal > { self . into_iter ( ) . map ( | element | match element { AttrValElement :: Primitive ( x ) => Ok ( x ) , AttrValElement :: Expr ( expr ) => expr . eval ( variables ) , } ) . collect ( ) }
resolve fully.
resolve fully .
self
variables
&HashMap<VarName, PrimVal>