MCPcopy Create free account
hub / github.com/Schwenger/RustTyC / create_addition

Function create_addition

examples/parametrized_function.rs:216–223  ·  view source on GitHub ↗
(lhs: Expression, rhs: Expression)

Source from the content-addressed store, hash-verified

214}
215
216fn create_addition(lhs: Expression, rhs: Expression) -> Expression {
217 Expression::PolyFn {
218 name: "addition", // Signature: +<T: Numeric>(T, T) -> T
219 param_constraints: vec![Some(Variant::Numeric)],
220 args: vec![(ParamType::ParamId(0), lhs), (ParamType::ParamId(0), rhs)],
221 returns: ParamType::ParamId(0),
222 }
223}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected