4 fn create(&self) -> <Self as Factory>::Product;
9 fn create(&self) -> f64 { *self * *self }
12 impl<A: Factory, B: Factory> Factory for (A, B) {
13 type Product = (<A as Factory>::Product, <B as Factory>::Product);
14 fn create(&self) -> (<A as Factory>::Product, <B as Factory>::Product) {
15 let (ref a, ref b) = *self;
16 (a.create(), b.create())
21 assert_eq!((16., 25.), (4., 5.).create());