If you find this helpful, please like, bookmark, and follow. To keep learning along, follow this series. 9.4.1 General Principles Chapter 9.1, “Unrecoverable Errors and panic!”, already explained that Rust has two kinds of errors: recoverable and unrecoverable. Calling panic! is equivalent to an unrecoverable error. Returning a Result type means the error is propagated, and such an error is reco
[Rust Guide] 9.4. When Should You Use Panic!
SomeB1oody·Dev.to··1 min read
D
Continue reading on Dev.to
This article was sourced from Dev.to's RSS feed. Visit the original for the complete story.