deki 0.3.0

A base for most of my rust projects (tailored to myself)!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use deki::*;

#[derive(Cycle,PartialEq,Debug)]
enum Number {One, Two, Three}

#[test]
fn test_enum_cycle(){
    let one = Number::One;
    assert_eq!(Number::Two,one.cycle_next());
    assert_eq!(Number::Three,one.cycle_prev());
    let two = one.cycle_next();
    assert_eq!(Number::Three,two.cycle_next());
}