Mod seems to be counter-intuitive in rust

⚓ Rust    📅 2025-12-22    👤 surdeus    👁️ 18      

surdeus

Warning

This post was published 120 days ago. The information described in this article may have changed.

this is just me. i am unable to understand the usage of modules with mod keyword.

is mod used to import a file into another file?
like is it an alias to a file name?

38 posts - 7 participants

Read full topic

🏷️ Rust_feed