Module assert

Source
Expand description

Non-panicking assertions.

These assertions behave similarly to the assertion macros in the Rust standard library, but rather than panicking, they immediately return a Result with a Failed error.

Since the kernel cannot currently unwind and recover from panics, this allows assertions to fail without halting the kernel, allowing other tests to run.

Structsยง

Failed
An error that indicates that an assertion failed.