Trait fix_getters_utils::crate_traverser::CrateTraverser[][src]

pub trait CrateTraverser {
    fn handle_rust_file(
        &mut self,
        path: &Path,
        output_path: &Option<PathBuf>
    ) -> Result<(), Error>; fn handle_skipped_dir_entry(
        &mut self,
        _entry: &DirEntry,
        _output_path: &Option<PathBuf>
    ) -> Result<(), Error> { ... }
fn traverse(
        &mut self,
        path: &Path,
        output_path: &Option<PathBuf>
    ) -> Result<(), Error> { ... } }
Expand description

Crate traversal mechanism.

By default, the dir entries are traversed according to the rules defined in rules::dir_entry.

If output_path is specified, the traversed tree is replicated there.

Required methods

fn handle_rust_file(
    &mut self,
    path: &Path,
    output_path: &Option<PathBuf>
) -> Result<(), Error>
[src]

Called when the path points to a Rust file.

Provided methods

fn handle_skipped_dir_entry(
    &mut self,
    _entry: &DirEntry,
    _output_path: &Option<PathBuf>
) -> Result<(), Error>
[src]

fn traverse(
    &mut self,
    path: &Path,
    output_path: &Option<PathBuf>
) -> Result<(), Error>
[src]

Traverses the crate or workspace from the specified path.

Implementors