creating your own errors in rust may be easier than you think
HTML-код
- Опубликовано: 10 сен 2024
- It absolutely is possible to create our own errors by impleminting the Error trait in #rust by hand. While Thiserror can make things a bit easier it isn't necessary. In this video I'll show you how you can make your errors and at the least understand a bit more how errors work in Rust code.
Links
Error trait: doc.rust-lang....
thiserror crate: crates.io/crat...