Перейти к содержимому

Easy Rust 191: Using enums as traits

mithradates

0:00 / 0:00

Easy Rust 191: Using enums as traits

3 084 просмотра · 3 г. назад
mithradates
11,3 тыс. подписчиков
3 084 просмотра · 3 г. назад
Interesting recent discovery: enums can work a lot like traits! Starts from this discussion:   / am_i_overusing_traits   Also forgot to mention in the video that there is a crate to automatically do this: https://docs.rs/enum_dispatch/latest/... Want to buy me a coffee? https://www.buymeacoffee.com/mithridates