1 2 3 4 5 6 7 8 9 10 11 12
use sml::sml; struct Operation<T>(T); sml! { MutableCompletion<'event, T: Clone + 'event> { *Idle + event<&'event mut Operation<T>> = Finishing, Finishing + completion<Operation> = X, } } fn main() {}