Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips and Traps

  1. There are 2 specialization related features specialization and min_specialization in Rust. Both of them are unstable currentlly. min_specialization implements only a subset of specialization but is more stable. It is suggested that you use min_specialization as specialization is disabled by Rust at this time. Eventually, min_specialization will be replace by specialization (after the implementation of specialization stablize).

  2. Specialization (unstable feature) is not powerful enough. It does not support specializing a generic function directly but you have to do it via specilizing a method of a trait. For more discussionss, please refer to Specialization of a simple function .