函數在Rust 裏是一等公民(first class), 即可以做爲參數和返回值,和內置 ... 16); } fn size_of<T>(_: &T) -> usize { std::mem::size_of::<T>() }.
確定! 回上一頁