rustdoc: Add the concept of 'sections'
This commit is contained in:
parent
4ffcb95974
commit
0ad8265fee
6 changed files with 337 additions and 2 deletions
|
@ -44,6 +44,7 @@ fn mk_itemdoc(id: ast::node_id, name: ast::ident) -> doc::itemdoc {
|
|||
path: [],
|
||||
brief: none,
|
||||
desc: none,
|
||||
sections: [],
|
||||
reexport: false
|
||||
}
|
||||
}
|
||||
|
@ -250,6 +251,7 @@ fn ifacedoc_from_iface(
|
|||
name: method.ident,
|
||||
brief: none,
|
||||
desc: none,
|
||||
sections: [],
|
||||
args: argdocs_from_args(method.decl.inputs),
|
||||
return: {
|
||||
desc: none
|
||||
|
@ -292,6 +294,7 @@ fn impldoc_from_impl(
|
|||
name: method.ident,
|
||||
brief: none,
|
||||
desc: none,
|
||||
sections: [],
|
||||
args: argdocs_from_args(method.decl.inputs),
|
||||
return: {
|
||||
desc: none
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue