Go deep

Recent Posts

May 19, 2022

Constrain Struct Generic Field in Rust

It is a quite common need to constrain struct generic field to certain types in Rust. We usually have two different ways to implement this. Trait or dispatching each of them by ourselves.

May 19, 2021

Rust-DFS 给表达式添加运算符

在某一个信息流网站上,看到一个 challenge,里面有部分是编程题。在 Leetcode 上有类似的题目,比如 Leetcode-282, 其要求也同样是给数字填补运算符。