how.rs/src/lib.rs

29 lines
533 B
Rust
Raw Normal View History

2022-07-21 20:40:44 -04:00
#![doc = include_str!("../README.md")]
#![deny(unsafe_code)]
2023-01-17 07:29:58 -05:00
#![feature(backtrace)]
2022-07-21 20:39:47 -04:00
2022-07-21 20:40:44 -04:00
mod sealed;
pub(crate) use sealed::seal;
2022-07-21 20:39:47 -04:00
mod context;
2022-07-21 20:40:44 -04:00
pub use context::{Context, IntoContext};
2022-07-21 20:39:47 -04:00
mod report;
2022-07-21 20:40:44 -04:00
pub use report::{Report, ReportOpts};
mod into;
pub(crate) use into::IntoResultHow;
2022-07-21 20:39:47 -04:00
mod explain;
pub use explain::Explain;
2022-07-21 20:40:44 -04:00
#[cfg(feature = "termination")]
mod termination;
#[cfg(feature = "termination")]
pub use termination::TerminationResult;
mod how;
2022-11-09 19:49:45 -05:00
pub use self::how::How;
2022-07-21 20:39:47 -04:00
pub type Result<T, E = How> = std::result::Result<T, E>;