摘要: Rust实现打印变量的的类型名 use std::fmt::{Debug}; #[derive(Debug)] enum Unit{ P1,P2 } //实行trait bound fn type_v<T>(t:T) where T:Debug { println!("{:?},{}",t,core 阅读全文
posted @ 2021-10-10 14:09 iwetuan 阅读(442) 评论(0) 推荐(0) 编辑