Type Alias Expression

Source
pub type Expression = dyn Fn(&Vec<f32>) -> f32;
Expand description

When defining a gate they can take parameter variables. These variables can then be used in the gate definition to create an expression which can be evaluated into a number. However when defining the gate the parameter variables do not have a specified value so GateOperations can not simply store f32 as parameters, they need to contain functions which along with some values for the parameter variables produce a f32.