(elems: impl IntoIterator<Item = (&'static str, AlgebraicType)>)
| 105 | } |
| 106 | |
| 107 | fn tuple(elems: impl IntoIterator<Item = (&'static str, AlgebraicType)>) -> ProductType { |
| 108 | ProductType { |
| 109 | elements: elems |
| 110 | .into_iter() |
| 111 | .map(|(name, ty)| ProductTypeElement::new_named(ty, name)) |
| 112 | .collect(), |
| 113 | } |
| 114 | } |
| 115 | fn enumm(elems: impl IntoIterator<Item = (&'static str, AlgebraicType)>) -> SumType { |
| 116 | SumType { |
| 117 | variants: elems |
no test coverage detected
searching dependent graphs…