[][src]Trait concordium_std::ExpectReport

pub trait ExpectReport {
    type Unwrap;
    pub fn expect_report(self, msg: &str) -> Self::Unwrap;
}

Analogue of the expect methods on types such as Option, but useful in a Wasm setting.

Associated Types

Loading content...

Required methods

pub fn expect_report(self, msg: &str) -> Self::Unwrap[src]

Like the default expect on, e.g., Result, but calling fail with the given message, instead of panic.

Loading content...

Implementations on Foreign Types

impl<A, E: Debug> ExpectReport for Result<A, E>[src]

type Unwrap = A

impl<A> ExpectReport for Option<A>[src]

type Unwrap = A

Loading content...

Implementors

Loading content...