The type of the error (defaults to Error)
The condition to assert
The error to return if the condition is false
Whether to throw the error instead of returning a Result (defaults to true)
A Result that is ok(true) if condition is true, or err(error) if false
Rust-style assertion that returns a Result instead of throwing.