File tree 3 files changed +49
-30
lines changed
third-party/thrift/src/thrift/compiler/generate/templates/rust/lib
3 files changed +49
-30
lines changed Original file line number Diff line number Diff line change 27
27
} }{ {/type:struct} }{ {!
28
28
} }{ {#type:enum} }{ {enum:package} }::{ {enum:rust_name} }{ {/type:enum} }{ {!
29
29
} }{ {#type:list?} }
30
- }}::std::vec::Vec< { {#type:list_elem_type } } { { > lib/type } } { {/type:list_elem_type } }> { {!
30
+ }}::std::vec::Vec{ { > lib/type_generics } } { {!
31
31
} }{ {/type:list?} }{ {!
32
32
} }{ {#type:set?} }{ {!
33
- } }::{ {field:type_rust} }{ {!
34
- } }<{ {!
35
- } }{ {#type:set_elem_type} }{ {!
36
- } }{ {#type:floating_point?} }::fbthrift::export::OrderedFloat<{ {> lib/type} }>{ {/type:floating_point?} }{ {!
37
- } }{ {^type:floating_point?} }{ {> lib/type} }{ {/type:floating_point?} }{ {!
38
- } }{ {/type:set_elem_type} }{ {!
39
- } }>{ {!
33
+ } }::{ {field:type_rust} }{ {> lib/type_generics} }{ {!
40
34
} }{ {/type:set?} }{ {!
41
35
} }{ {#type:map?} }{ {!
42
- } }::{ {field:type_rust} }{ {!
43
- } }<{ {!
44
- } }{ {#type:key_type} }{ {!
45
- } }{ {#type:floating_point?} }::fbthrift::export::OrderedFloat<{ {> lib/type} }>{ {/type:floating_point?} }{ {!
46
- } }{ {^type:floating_point?} }{ {> lib/type} }{ {/type:floating_point?} }{ {!
47
- } }{ {/type:key_type} }, { {!
48
- } }{ {#type:value_type} }{ {> lib/type} }{ {/type:value_type} }{ {!
49
- } }>{ {!
36
+ } }::{ {field:type_rust} }{ {> lib/type_generics} }{ {!
50
37
} }{ {/type:map?} }{ {!
51
38
} }
Original file line number Diff line number Diff line change 48
48
} }{ {enum:package} }::{ {enum:rust_name} }{ {!
49
49
} }{ {/type:enum} }{ {!
50
50
} }{ {#type:list?} }{ {!
51
- } }::std::vec::Vec< { {#type:list_elem_type } } { { > lib/type } } { {/type:list_elem_type } }> { {!
51
+ } }::std::vec::Vec{ { > lib/type_generics } } { {!
52
52
} }{ {/type:list?} }{ {!
53
53
} }{ {#type:set?} }{ {!
54
54
} }{ {#type:rust} }::{ {type:rust} }{ {/type:rust} }{ {!
55
55
} }{ {^type:rust} }::std::collections::BTreeSet{ {/type:rust} }{ {!
56
- } }<{ {!
57
- } }{ {#type:set_elem_type} }{ {!
58
- } }{ {#type:floating_point?} }::fbthrift::export::OrderedFloat<{ {> lib/type} }>{ {/type:floating_point?} }{ {!
59
- } }{ {^type:floating_point?} }{ {> lib/type} }{ {/type:floating_point?} }{ {!
60
- } }{ {/type:set_elem_type} }{ {!
61
- } }>{ {!
56
+ } }{ {> lib/type_generics} }{ {!
62
57
} }{ {/type:set?} }{ {!
63
58
} }{ {#type:map?} }{ {!
64
59
} }{ {#type:rust} }::{ {type:rust} }{ {/type:rust} }{ {!
65
60
} }{ {^type:rust} }::std::collections::BTreeMap{ {/type:rust} }{ {!
66
- } }<{ {!
67
- } }{ {#type:key_type} }{ {!
68
- } }{ {#type:floating_point?} }::fbthrift::export::OrderedFloat<{ {> lib/type} }>{ {/type:floating_point?} }{ {!
69
- } }{ {^type:floating_point?} }{ {> lib/type} }{ {/type:floating_point?} }{ {!
70
- } }{ {/type:key_type} }, { {!
71
- } }{ {#type:value_type} }{ {> lib/type} }{ {/type:value_type} }{ {!
72
- } }>{ {!
61
+ } }{ {> lib/type_generics} }{ {!
73
62
} }{ {/type:map?} }{ {!
74
63
} }
Original file line number Diff line number Diff line change
1
+ { {!
2
+
3
+ Copyright (c) Meta Platforms, Inc. and affiliates.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the " License" );
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an " AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+
17
+ } }{ {#type:list?} }{ {!
18
+ } }<{ {!
19
+ } }{ {#type:list_elem_type} }{ {!
20
+ } }{ {> lib/type} }{ {!
21
+ } }{ {/type:list_elem_type} }{ {!
22
+ } }>{ {!
23
+ } }{ {/type:list?} }{ {!
24
+ } }{ {#type:set?} }{ {!
25
+ } }<{ {!
26
+ } }{ {#type:set_elem_type} }{ {!
27
+ } }{ {#type:floating_point?} }::fbthrift::export::OrderedFloat<{ {> lib/type} }>{ {/type:floating_point?} }{ {!
28
+ } }{ {^type:floating_point?} }{ {> lib/type} }{ {/type:floating_point?} }{ {!
29
+ } }{ {/type:set_elem_type} }{ {!
30
+ } }>{ {!
31
+ } }{ {/type:set?} }{ {!
32
+ } }{ {#type:map?} }{ {!
33
+ } }<{ {!
34
+ } }{ {#type:key_type} }{ {!
35
+ } }{ {#type:floating_point?} }::fbthrift::export::OrderedFloat<{ {> lib/type} }>{ {/type:floating_point?} }{ {!
36
+ } }{ {^type:floating_point?} }{ {> lib/type} }{ {/type:floating_point?} }{ {!
37
+ } }{ {/type:key_type} }, { {!
38
+ } }{ {#type:value_type} }{ {!
39
+ } }{ {> lib/type} }{ {!
40
+ } }{ {/type:value_type} }{ {!
41
+ } }>{ {!
42
+ } }{ {/type:map?} }{ {!
43
+ } }
You can’t perform that action at this time.
0 commit comments