A simple implementation of Rust style type traits for Zig generics: https://github.com/permutationlock/ztrait
When I first saw @typeInfo and comptime Zig, I started wondering whether it was possible to implement type classes/traits. I decided to give it a try a couple of days ago and it was surprisingly easy to get something working.
This only does trait verification and does not restrict how types are used (you can use declarations that don't appear in any required traits).
Edit: I don't think that anyone should use Ztrait for any practical purpose. Check out Zimpl for my next attempt at constrained generics: https://github.com/permutationlock/ztrait

indeed is not limited to Sealife.