erratic 0.4.0

Handling errors in an efficient way.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Error placeholder for [`Builder`][crate::Builder].
use std::{
    error,
    fmt::{self, Display},
};

/// Not an error, a zero-sized error placeholder for [Error][crate::Error], represents the end of the error source chain.
/// It is used by [`Builder`][crate::Builder] and will not appear in the [`chain`][crate::Error::chain] method.
#[derive(Debug)]
pub struct Nae;

impl Display for Nae {
    fn fmt(&self, _f: &mut fmt::Formatter<'_>) -> fmt::Result {
        Ok(())
    }
}

impl error::Error for Nae {}