Skip to content

Commit e88387a

Browse files
committed
rustdoc: add some docs for item types
1 parent 6f6b099 commit e88387a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/librustdoc/clean.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,18 @@ pub enum ItemEnum {
174174
StaticItem(Static),
175175
TraitItem(Trait),
176176
ImplItem(Impl),
177+
/// `use` and `extern crate`
177178
ViewItemItem(ViewItem),
179+
/// A method signature only. Used for required methods in traits (ie,
180+
/// non-default-methods).
178181
TyMethodItem(TyMethod),
182+
/// A method with a body.
179183
MethodItem(Method),
180184
StructFieldItem(StructField),
181185
VariantItem(Variant),
186+
/// `fn`s from an extern block
182187
ForeignFunctionItem(Function),
188+
/// `static`s from an extern block
183189
ForeignStaticItem(Static),
184190
MacroItem(Macro),
185191
}

0 commit comments

Comments
 (0)