1 2 3 4 5 6 7
//! Define a custom Result type. #[cfg(not(feature = "std"))] use alloc::boxed::Box; /// A Result using [`core::error::Error`] as error type. pub type Result<T> = core::result::Result<T, Box<dyn core::error::Error + Send + Sync>>;