bounded-integer-plugin 0.1.1

Bounded integers compiler plugin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![allow(dead_code)]
#![feature(plugin)]
#![plugin(bounded_integer_plugin)]

#[macro_use]
extern crate bounded_integer;

use std::fmt::Debug;

trait AssertImplDebug: Debug { }

bounded_integer! {
    /// Documentation.
    #[derive(Debug)]
    enum A: u8 { 0...1 }
}
impl AssertImplDebug for A { }