Ben Chuanlong Du's Blog

It is never too late to learn.

Const Generic in Rust

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

  1. Starting from Rust 1.51, constant generics is supported for integral types.

  2. The crate static_assertions can be used to assert that a const generic parameter satisfy certain conditions at compile time …

Trait in Rust

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