cgp-tests 0.5.0-beta

Context-generic programming meta crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
use cgp::prelude::*;

#[cgp_type]
pub trait HasFooType<T: ?Sized> {
    type Foo;
}

#[cgp_getter]
pub trait HasFoo<T: ?Sized>: HasFooType<T> {
    fn foo(&self) -> &Self::Foo;
}