Struct collapse_crate::CrateTree
[−]
[src]
pub struct CrateTree { /* fields omitted */ }
A tree of modules which forms an entire crate.
Methods
impl CrateTree
[src]
fn new() -> CrateTree
Creates an empty crate.
fn insert<I: IntoIterator<Item = Ident>>(&mut self, path: I, krate: Crate)
Inserts a crate into the given module path.
fn into_crate(self) -> Crate
Converts this tree into a single crate.
fn into_crate_with_orphans(self) -> Crate
Converts this tree into a single crate, including unreachable modules.