Measure function execution time elegantly in Rust(Python, Golang)
rustpythongoprofiling
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.
Read more →
19th May 2021
Constrain Struct Generic Field in Rust
rustgeneric
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.
Read more →
18th May 2021
Rust Merge Strings Alternately
rustalgorithmleetcode
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.