about
11/29/2022
RustErrorHandling Repo
RustErrorHandling Repository
panic, is_ok, match, ?
Quick Status
Contents:
-
RustPanics
demonstrates when panics occur and how to trap them -
ErrorHandlingOps
demonstrates quering returned results with is_ok, match, let if, ? -
ConsoleErrorHandling
handling errors with stdin and stdout -
FileErrorHandling
handling file open and read/write errors -
IndexOutOfBounds
demonstrates that Rust out of bounds index results in panic -
CppUndefinedBehavior
Illustrates that C++ allows mutation of data with active references and indexing out of bounds, both resulting in undefined behavior. Also shows that C++ provides conventions to avoid undefined behavior.