#[derive(Debug, PartialEq)] pub struct People { name: &'static str, gender: u32, } // 注意这里没有分号impl People { // new 方法的参数并没有&self fn ...
確定! 回上一頁