Skip to content

accessing_struct_in_main

Brooks Patton edited this page Nov 12, 2018 · 2 revisions

Accessing a Struct in main.rs

Use super::NameOfStruct to gain access to a struct in the main file.

Thanks to jens1o from Twitch for this information!

Read about mod and super in the documentation.

Clone this wiki locally