Tags / 1 post
#generics
2024 1 post
-
Nutype 0.4.3 - generic newtypes!
Newtypes can now be generic, like NonEmpty<T> over Vec<T>, with bounds such as T: Ord when a sanitizer needs to sort.
Tags / 1 post
Newtypes can now be generic, like NonEmpty<T> over Vec<T>, with bounds such as T: Ord when a sanitizer needs to sort.