bite-gp-macros 1.25.202

Macros used by gpui
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[test]
fn test_derive_context() {
    use gpui::{App, Window};
    use gpui_macros::{AppContext, VisualContext};

    #[derive(AppContext, VisualContext)]
    struct _MyCustomContext<'a, 'b, 'w> {
        #[app]
        app: &'a mut App,
        #[window]
        window: &'b mut Window<'w>,
    }
}