You can also make a whole module public, to allow access
This commit is contained in:
1 parent
41eb9a9dc0
commit
0a692c01de
2 files changed
+2
-4
No files matched your search
+1
-3
@@ -1,4 +1,2 @@
|
||||
mod geometry;
|
||||
mod math;
|
||||
|
||||
pub use math::Point3;
|
||||
pub mod math;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
use hello::Point3;
|
||||
use hello::math::Point3;
|
||||
|
||||
fn main() {
|
||||
let p = Point3::new(0.0, 0.0, 0.0);
|
||||
|
||||
Reference in new issue
Block a user