errcraft 0.1.0

Beautiful, structured, and colorful error handling for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Result type aliases and helpers.

use crate::ErrFrame;

/// A `Result` type alias that uses `ErrFrame` as the error type.
///
/// This is a convenience alias for functions that return errcraft errors.
///
/// # Examples
///
/// ```rust
/// use errcraft::{ErrFrame, ErrResult};
///
/// fn do_something() -> ErrResult<String> {
///     Ok("success".to_string())
/// }
/// ```
pub type ErrResult<T> = Result<T, ErrFrame>;