Skip to content

Instantly share code, notes, and snippets.

@badboy
badboy / playground.rs
Created December 12, 2018 19:13 — forked from rust-play/playground.rs
Code shared from the Rust Playground
trait StateSet {
fn next(self) -> (u32, Self);
}
trait State {
type S: StateSet;
fn next(self) -> (u32, Self::S);
}
macro_rules! delegate {