Rust Drop trait. drop trait 用于在值超出范围时释放文件或网络连接等资源。 ... 当实例移出作用域时,Rust会隐式调用 drop() 方法来删除 Example 类型的实例。
確定! 回上一頁