I have mymod.rs:
pub mod mymod {
#[derive(Debug)]
pub struct mystruct {
pub x: i32,
}
}
And main.rs:
mod mymod;
use mymod::mymod::mystruct;
fn main() {
let x = mystruct { x: 10 };
println!("{:#?}", x);
}
Output is:
mystruct {
x: 10,
}
Can I make it display the following text:
mymod::mymod::mystruct {
x: 10,
}
?