What's the idiomatic design in zig when there is no interfaces/traits?

Related topic.