Trait concordium_std::ExpectReport [−][src]
pub trait ExpectReport {
type Unwrap;
fn expect_report(self, msg: &str) -> Self::Unwrap;
}Expand description
Analogue of the expect methods on types such as Option,
but useful in a Wasm setting.
Associated Types
Required methods
fn expect_report(self, msg: &str) -> Self::Unwrap
fn expect_report(self, msg: &str) -> Self::Unwrap
Like the default expect on, e.g., Result, but calling
fail with the given message, instead of panic.
