[go: up one dir, main page]

eyre 0.3.0

Flexible concrete Error Handling and Reporting type built on std::error::Error
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::error::ErrorImpl;
use crate::EyreContext;
use core::fmt;

impl<C> ErrorImpl<(), C>
where
    C: EyreContext,
{
    pub(crate) fn display(&self, f: &mut fmt::Formatter) -> fmt::Result {
        self.context.display(self.error(), f)
    }

    pub(crate) fn debug(&self, f: &mut fmt::Formatter) -> fmt::Result {
        self.context.debug(self.error(), f)
    }
}