Struct collapse_crate::CrateTree [] [src]

pub struct CrateTree { /* fields omitted */ }

A tree of modules which forms an entire crate.

Methods

impl CrateTree
[src]

Creates an empty crate.

Inserts a crate into the given module path.

Converts this tree into a single crate.

Converts this tree into a single crate, including unreachable modules.

Trait Implementations

impl Default for CrateTree
[src]

Returns the "default value" for a type. Read more

impl<I: IntoIterator<Item = Ident>> FromIterator<(I, Crate)> for CrateTree
[src]

Creates a value from an iterator. Read more