Latest posts

  • 26th May 2021

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.

Read more 
  • 19th May 2021

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.

Read more 
  • 18th May 2021

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.

Read more 
  • 4th August 2020
  • 28th December 2019