摘要: 泛型 接口约束也可以是空接口 struct Empty; struct Null; /* impl Display for Empty, Null */ trait Drop<T> { fn drop(self, _: T); } impl<T: Display, U> Drop for U // 阅读全文
posted @ 2023-03-16 21:11 某某人8265 阅读(22) 评论(0) 推荐(0) 编辑