rustdoc: Switch field privacy as necessary

This commit is contained in:
Alex Crichton
2014-03-28 10:27:24 -07:00
parent f0ee509229
commit eb08e8fec2
10 changed files with 258 additions and 250 deletions

View File

@@ -26,7 +26,7 @@ pub struct Toc {
/// # Main
/// ### A
/// ## B
priv entries: Vec<TocEntry>
entries: Vec<TocEntry>
}
impl Toc {
@@ -37,17 +37,17 @@ impl Toc {
#[deriving(Eq)]
pub struct TocEntry {
priv level: u32,
priv sec_number: ~str,
priv name: ~str,
priv id: ~str,
priv children: Toc,
level: u32,
sec_number: ~str,
name: ~str,
id: ~str,
children: Toc,
}
/// Progressive construction of a table of contents.
#[deriving(Eq)]
pub struct TocBuilder {
priv top_level: Toc,
top_level: Toc,
/// The current heirachy of parent headings, the levels are
/// strictly increasing (i.e. chain[0].level < chain[1].level <
/// ...) with each entry being the most recent occurance of a
@@ -56,7 +56,7 @@ pub struct TocBuilder {
/// the most recent one).
///
/// We also have `chain[0].level <= top_level.entries[last]`.
priv chain: Vec<TocEntry>
chain: Vec<TocEntry>
}
impl TocBuilder {