1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
use core::fmt::Display;

pub struct Data {
    pub x: i16,
    pub y: i16
}

context! {
    mod example_context {
        data (data_mut): mut Data,
        display: ref dyn Display,
        id: const usize,
    }
}

pub use example_context::Context as ExampleContext;