repetitive 0.3.2

Macro for generating repetitive code
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::*;

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct UnknownGuard {
    private: (),
}

impl ErrorHandle {
    pub fn unknown_guard(&self) -> UnknownGuard {
        UnknownGuard { private: () }
    }
}