Paths

Paths are resolved as follows:

  1. As a relative path:

  2. foo or self::foo refers to foo in the current module,

  3. super::foo refers to foo in the parent module.
  4. As an absolute path:

  5. crate::foo refers to foo in the root of the current crate,

  6. bar::foo refers to foo in the bar crate.