A simple CPU rendered GUI IDE experience.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#[derive(Copy, Clone)]
pub struct WDebug;

impl<C> rootcause::handlers::ContextHandler<C> for WDebug
where
    C: core::fmt::Debug,
{
    fn source(
        _context: &C,
    ) -> Option<&(dyn core::error::Error + 'static)> {
        None
    }

    fn display(
        c: &C,
        f: &mut core::fmt::Formatter<'_>,
    ) -> core::fmt::Result {
        core::fmt::Debug::fmt(c, f)
    }

    fn debug(
        context: &C,
        f: &mut core::fmt::Formatter<'_>,
    ) -> core::fmt::Result {
        core::fmt::Debug::fmt(context, f)
    }
}