]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | // rustfmt-indent_style: Visual |
2 | ||
3 | // #1357 | |
4 | impl< | |
5 | 'a, | |
6 | Select, | |
7 | From, | |
8 | Distinct, | |
9 | Where, | |
10 | Order, | |
11 | Limit, | |
12 | Offset, | |
13 | Groupby, | |
14 | DB, | |
15 | > InternalBoxedDsl<'a, DB> | |
16 | for SelectStatement< | |
17 | Select, | |
18 | From, | |
19 | Distinct, | |
20 | Where, | |
21 | Order, | |
22 | Limit, | |
23 | Offset, | |
24 | GroupBy, | |
25 | > where | |
26 | DB: Backend, | |
27 | Select: QueryFragment<DB> + SelectableExpression<From> + 'a, | |
28 | Distinct: QueryFragment<DB> + 'a, | |
29 | Where: Into<Option<Box<QueryFragment<DB> + 'a>>>, | |
30 | Order: QueryFragment<DB> + 'a, | |
31 | Limit: QueryFragment<DB> + 'a, | |
32 | Offset: QueryFragment<DB> + 'a, | |
33 | { | |
34 | type Output = BoxedSelectStatement<'a, Select::SqlTypeForSelect, From, DB>; | |
35 | ||
36 | fn internal_into_boxed(self) -> Self::Output { | |
37 | BoxedSelectStatement::new( | |
38 | Box::new(self.select), | |
39 | self.from, | |
40 | Box::new(self.distinct), | |
41 | self.where_clause.into(), | |
42 | Box::new(self.order), | |
43 | Box::new(self.limit), | |
44 | Box::new(self.offset), | |
45 | ) | |
46 | } | |
47 | } | |
48 | ||
49 | // #1369 | |
50 | impl< | |
51 | ExcessivelyLongGenericName, | |
52 | ExcessivelyLongGenericName, | |
53 | AnotherExcessivelyLongGenericName, | |
54 | > Foo for Bar { | |
55 | fn foo() {} | |
56 | } | |
57 | impl Foo< | |
58 | ExcessivelyLongGenericName, | |
59 | ExcessivelyLongGenericName, | |
60 | AnotherExcessivelyLongGenericName, | |
61 | > for Bar { | |
62 | fn foo() {} | |
63 | } | |
64 | impl< | |
65 | ExcessivelyLongGenericName, | |
66 | ExcessivelyLongGenericName, | |
67 | AnotherExcessivelyLongGenericName, | |
68 | > Foo< | |
69 | ExcessivelyLongGenericName, | |
70 | ExcessivelyLongGenericName, | |
71 | AnotherExcessivelyLongGenericName, | |
72 | > for Bar { | |
73 | fn foo() {} | |
74 | } | |
75 | impl< | |
76 | ExcessivelyLongGenericName, | |
77 | ExcessivelyLongGenericName, | |
78 | AnotherExcessivelyLongGenericName, | |
79 | > Foo for Bar< | |
80 | ExcessivelyLongGenericName, | |
81 | ExcessivelyLongGenericName, | |
82 | AnotherExcessivelyLongGenericName, | |
83 | > { | |
84 | fn foo() {} | |
85 | } | |
86 | impl Foo< | |
87 | ExcessivelyLongGenericName, | |
88 | ExcessivelyLongGenericName, | |
89 | AnotherExcessivelyLongGenericName, | |
90 | > for Bar< | |
91 | ExcessivelyLongGenericName, | |
92 | ExcessivelyLongGenericName, | |
93 | AnotherExcessivelyLongGenericName, | |
94 | > { | |
95 | fn foo() {} | |
96 | } | |
97 | impl<ExcessivelyLongGenericName, | |
98 | ExcessivelyLongGenericName, | |
99 | AnotherExcessivelyLongGenericName> Foo<ExcessivelyLongGenericName, | |
100 | ExcessivelyLongGenericName, | |
101 | AnotherExcessivelyLongGenericName> | |
102 | for Bar<ExcessivelyLongGenericName, | |
103 | ExcessivelyLongGenericName, | |
104 | AnotherExcessivelyLongGenericName> { | |
105 | fn foo() {} | |
106 | } |