This is the most common #rustlang interview question #rprogramming #rustprogramming

preview_player
Показать описание
Recursive types are an interesting problem in rust!
Рекомендации по теме
Комментарии
Автор

Yeah, that is an enum, not a struct! but the solution is the same, use Box pointers!

dario.lencina
Автор

otra vez gracias, estoy por terminar Rust y tu canal ha sido de lo mejor que hay para aprender mi hermano. Abrazos desde Mexio

viktoreidrien
Автор

Box is also useful for returning impl trait

skytech
join shbcf.ru