Latest posts
Measure function execution time elegantly in Rust(Python, Golang)
Measuring function time is quite necessary sometimes. It is easy to implement this in other languages but not in Rust. Therefore, this post will demonstrate some tricks to measure the function execution time.
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.
Rust Merge Strings Alternately
This posts comes from the real project scenario. Later, I surprisedly find there is one problem in Leetcode. Personally I not a fan of solving Leetcode problems. Let's write a post here since they provide detailed descriptions.