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 NONE  = 0b00000;
        const OK    = 0b00001;
        const DEBUG = 0b00010;
        const ERROR = 0b00100;
        const OK_DEBUG       = Self::OK.bits    | Self::DEBUG.bits;
        const OK_ERROR       = Self::OK.bits    | Self::ERROR.bits;
        const OK_DEBUG_ERROR = Self::OK.bits    | Self::DEBUG.bits     | Self::ERROR.bits;
        const DEBUG_ERROR    = Self::DEBUG.bits | Self::ERROR.bits;
    }
}