pub fn load_expressions<S: Into<String>, P: AsRef<Path>>(
        &mut self,
        name: S,
        path: P,
    ) -> CubismResult<Option<Expression>> {
        Expression::from_exp3_json(&self.model, path)
            .map(|exp| self.expressions.insert(name.into(), exp))
    }
/// Loads an expression from a json file at the given path and adds it with
/// the given name. If an expression with the given name already exists it
/// will be replaced by the new one, returning the previous expression.
Loads an expression from a json file at the given path and adds it with
the given name. If an expression with the given name already exists it
will be replaced by the new one, returning the previous expression.
Loads an expression from a json file at the given path and adds it with the given name . If an expression with the given name already exists it will be replaced by the new one returning the previous expression .
pub fn load_expressions<S: Into<String>, P: AsRef<Path>>(
        &mut self,
        name: S,
        path: P,
    ) -> CubismResult<Option<Expression>> {
        Expression::from_exp3_json(&self.model, path)
            .map(|exp| self.expressions.insert(name.into(), exp))
    }
pub fn load_expressions < S : Into < String > , P : AsRef < Path > > ( & mut self , name : S , path : P , ) -> CubismResult < Option < Expression > > { Expression :: from_exp3_json ( & self . model , path ) . map ( | exp | self . expressions . insert ( name . into ( ) , exp ) ) }
Loads an expression from a json file at the given path and adds it with
the given name.
Loads an expression from a json file at the given path and adds it with the given name .
&mut self
name
S
path
P
&mut self
name
S
path
P