erratic 0.1.5

Handling errors in an efficient way.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::fmt::{self, Display};

/// A zero-sized payload placeholder for [Error][crate::Error].
#[derive(Debug)]
pub struct Empty;

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