future_form 0.3.1

Abstractions over Send and !Send futures
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use future_form::future_form;

trait Counter<K> {
    fn next(&self) -> u32;
}

struct Memory;

#[future_form(Sendable, Local)]
impl<K> Counter<K> for Memory {
    fn next(&self) -> u32 {
        42
    }
}

fn main() {}