pub fn new(model: Model) -> Self {
        let parameter_snapshot = model.parameter_values().into();
        Self {
            model,
            controllers: Vec::new(),
            controllers_rev_map: HashMap::new(),
            controllers_enabled: FixedBitSet::with_capacity(0),
            expressions: HashMap::new(),
            current_expression: None,
            expression_weight: 1.0,
            parameter_snapshot,
        }
    }
/// Creates a new UserModel backed by the given Model.
Creates a new UserModel backed by the given Model.
Creates a new UserModel backed by the given Model .
pub fn new(model: Model) -> Self {
        let parameter_snapshot = model.parameter_values().into();
        Self {
            model,
            controllers: Vec::new(),
            controllers_rev_map: HashMap::new(),
            controllers_enabled: FixedBitSet::with_capacity(0),
            expressions: HashMap::new(),
            current_expression: None,
            expression_weight: 1.0,
            parameter_snapshot,
        }
    }
pub fn new ( model : Model ) -> Self { let parameter_snapshot = model . parameter_values ( ) . into ( ) ; Self { model , controllers : Vec :: new ( ) , controllers_rev_map : HashMap :: new ( ) , controllers_enabled : FixedBitSet :: with_capacity ( 0 ) , expressions : HashMap :: new ( ) , current_expression : None , expression_weight : 1.0 , parameter_snapshot , } }
Creates a new UserModel backed by the given Model.
Creates a new UserModel backed by the given Model .
model
Model
model
Model