Загрузка...

Box and Error Handling in Rust

Continuing with error handling in Rust, specifically working through the Box type and how to use it with generic errors. We're tackling the rustlings exercises and figuring out the Into trait, error conversion, and how okay_or_else works with Result types.

Ran into some type inference issues along the way and dug into the standard library docs to understand what's actually happening under the hood.

⏱ Chapters
0:00 Box and error handling recap
0:33 What Box is and why it matters
2:17 Double first function example
3:39 Generic error types with Box
5:55 Okay or vs okay or else
9:15 Into trait and error conversion
13:04 Implementing the Error trait
15:40 Map error and type inference
18:22 Putting it all together

#Rust #RustLang #ErrorHandling

-
Watch Live: https://twitch.tv/lorduhuru

Видео Box and Error Handling in Rust канала lordUhuru Stream Archive
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять