[][src]Module solana_libra_failure_ext::prelude

Prelude module containing most commonly used types/macros this crate exports.

Re-exports

pub use crate::Result;
pub use failure::Fail;

Macros

bail

Exits a function early with an Error.

bail_err

Exits a function early with an Error.

ensure

Exits a function early with an Error if the condition is not satisfied.

format_err

Constructs an Error using the standard string interpolation syntax.

Structs

Error

The Error type, which can contain any failure.

Traits

Fail

The Fail trait.

ResultExt

Extension methods for Result.

Functions

err_msg

Constructs a Fail type from a string.