aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/interfaces/cow.rs
blob: 59ce7b1c5e472ef5a89caa6662d506bae978d8b7 (plain)
1
2
3
4
5
6
7
8
9
10
use syrette::factory;
use syrette::interfaces::factory::IFactory;

pub trait ICow
{
    fn moo(&self);
}

#[factory]
pub type CowFactory = dyn IFactory<(i32,), dyn ICow>;