File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -170,14 +170,16 @@ path required to refer to a module item. These declarations may appear in
170
170
171
171
Use declarations support a number of convenient shortcuts:
172
172
173
- * Rebinding the target name as a new local name, using the syntax ` use p::q::r as x; `
174
173
* Simultaneously binding a list of paths differing only in their final element,
175
174
using the glob-like brace syntax ` use a::b::{c,d,e,f}; `
176
- * Binding all paths matching a given prefix, using the asterisk wildcard syntax
177
- ` use a::b::*; `
178
175
* Simultaneously binding a list of paths differing only in their final element
179
176
and their immediate parent module, using the ` self ` keyword, such as
180
177
` use a::b::{self, c, d}; `
178
+ * Rebinding the target name as a new local name, using the syntax `use p::q::r
179
+ as x;` . This can also be used with the last two features: ` use a::b : :{self as
180
+ ab, c as abc}`.
181
+ * Binding all paths matching a given prefix, using the asterisk wildcard syntax
182
+ ` use a::b::*; `
181
183
182
184
An example of ` use ` declarations:
183
185
You can’t perform that action at this time.
0 commit comments