随笔分类 - Rust
rust program piece
摘要:cargo toml [package] name = "serialports" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/
阅读全文
摘要: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
阅读全文
浙公网安备 33010602011771号