摘要:
In Rust, the exclamation mark (!) after a name indicates that it is a macro rather than a function. Macros and functions in Rust are called differentl 阅读全文
posted @ 2024-02-15 16:11
Zhentiw
阅读(18)
评论(0)
推荐(0)
摘要:
We can use Reusltenum to do error handling type Result<V, E> { Err(E), Ok(V) } Example: // (): empty // uszie: just return a integre as error for demo 阅读全文
posted @ 2024-02-15 16:09
Zhentiw
阅读(10)
评论(0)
推荐(0)

浙公网安备 33010602011771号