|
1 | 1 | # Items
|
2 | 2 |
|
| 3 | +> **<sup>Syntax:<sup>**\ |
| 4 | +> _Item_:\ |
| 5 | +> [_OuterAttribute_]<sup>\*</sup> [_Visibility_]<sup>?</sup>\ |
| 6 | +> (\ |
| 7 | +> [_Module_]\ |
| 8 | +> | [_ExternCrate_]\ |
| 9 | +> | [_UseDeclaration_]\ |
| 10 | +> | [_Function_]\ |
| 11 | +> | [_TypeAlias_]\ |
| 12 | +> | [_Struct_]\ |
| 13 | +> | [_Enumeration_]\ |
| 14 | +> | [_Union_]\ |
| 15 | +> | [_ConstantItem_]\ |
| 16 | +> | [_StaticItem_]\ |
| 17 | +> | [_Trait_]\ |
| 18 | +> | [_Implementation_]\ |
| 19 | +> | [_ExternBlock_]\ |
| 20 | +> | _Macro_\ |
| 21 | +> | _MacroDefinition_\ |
| 22 | +> ) |
| 23 | +
|
| 24 | +[_OuterAttribute_]: attributes.html |
| 25 | +[_Visibility_]: visibility-and-privacy.html |
| 26 | +[_Module_]: items/modules.html |
| 27 | +[_ExternCrate_]: items/extern-crates.html |
| 28 | +[_UseDeclaration_]: items/use-declarations.html |
| 29 | +[_Function_]: items/functions.html |
| 30 | +[_TypeAlias_]: items/type-aliases.html |
| 31 | +[_Struct_]: items/structs.html |
| 32 | +[_Enumeration_]: items/enumerations.html |
| 33 | +[_Union_]: items/unions.html |
| 34 | +[_ConstantItem_]: items/constant-items.html |
| 35 | +[_StaticItem_]: items/static-items.html |
| 36 | +[_Trait_]: items/traits.html |
| 37 | +[_Implementation_]: items/implementations.html |
| 38 | +[_ExternBlock_]: items/extern-blocks.html |
| 39 | + |
3 | 40 | An _item_ is a component of a crate. Items are organized within a crate by a
|
4 | 41 | nested set of [modules]. Every crate has a single "outermost" anonymous module;
|
5 | 42 | all further items within the crate have [paths] within the module tree of the
|
|
0 commit comments