#problem with mod

5 messages · Page 1 of 1 (latest)

scarlet cradle
#

How can i use something that's inside command into the create_timer.rs?

reef oyster
#

Assuming you have all the relevant declarations, you can do one of the following:

use crate::traits::command;
use super::super::traits::command;
```Also since you're in vs code, you can use the rust-analyzer extension and tab-complete the name of the thing you want and it'll automatically give you the use statement. If it doesn't you probably forgot a mod declaration.
scarlet cradle
#

thank you, it worked. All the modules from my program needs to be "initialized" on the main.rs file?

reef oyster
#

No, only in their parent module/file.

light talon