macrofied-toolbox 0.4.2

This library provides an ergonomic experience of adding debugging messages to rust's Result<T,E> and Option<T> patterns
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
bitflags! {
    pub struct Parts: u8 {
        const NOTHING = 0b00000;
        const SOME    = 0b00001;
        const DEBUG   = 0b00010;
        const NONE    = 0b00100;
        const SOME_DEBUG      = Self::SOME.bits  | Self::DEBUG.bits;
        const SOME_NONE       = Self::SOME.bits  | Self::NONE.bits;
        const SOME_DEBUG_NONE = Self::SOME.bits  | Self::DEBUG.bits     | Self::NONE.bits;
        const DEBUG_NONE      = Self::DEBUG.bits | Self::NONE.bits;
    }
}