How to import `a` from `b/a`

I have project


How to use functions from src/ in src/a/

Rust uses explicitly declared module structure (through the mod keyword). So to answer how to use first the structure defined by mod must be specified.

mod puts together the files into the module hierarchy in the crate. (use imports names across that hierarchy.)

use ::b