super 关键字用于从当前模块访问父模块,它使能够访问父模块的私有功能。 mod a{ fn x() -> u8 { 5 } pub mod example { use super::x; pub fn foo() { println!(
確定! 回上一頁