You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let arr:[String;100] = std::array::from_fn(|i| String::from("rust is good!"));
let arr:[String;100] = core::array::from_fn(|i| String::from("rust is good!"));
两种初始化都可以通过,两者有什么不同用意,为什么补充材料中使用core而不是std?
The text was updated successfully, but these errors were encountered:
let arr:[String;100] = std::array::from_fn(|i| String::from("rust is good!"));
let arr:[String;100] = core::array::from_fn(|i| String::from("rust is good!"));
两种初始化都可以通过,两者有什么不同用意,为什么补充材料中使用core而不是std?
The text was updated successfully, but these errors were encountered: