Build with Naz - Rust polymorphism, dyn, impl, using existing traits, testing, reuse

preview_player
Показать описание

Chapters:
00:00:00 Intro
00:02:00 real world use case - r3bl_terminal_async crate
00:04:00 mock event input stream with dyn, and stdout with dyn
00:07:00 Intentional vagueness and polymorphism
00:08:00 Sizedness, pointer indirection, monomorphisation, trait pointers
00:09:00 Compile time and static dispatch vs run time and dynamic dispatch
00:12:00 Live coding session start, create new project
00:17:00 Static dispatch and monomorphisation code (impl)
00:28:00 Difference between Arc and Box
00:30:00 Dynamic dispatch and trait pointers (dyn)
00:43:00 Real world code eg (dynamic dispatch)
00:48:00 Testing and trait pointers
00:49:00 Real world code eg (dynamic dispatch)
01:00:00 Static dispatch and generics (impl)
01:04:00 Testing and static dispatch and generics (impl)

Рекомендации по теме
join shbcf.ru