aboutsummaryrefslogtreecommitdiff
path: root/examples/unbound/interfaces/animal_store.rs
blob: dc8a4c3321b7da0b3216c9e977b7f6b482813068 (plain)
1
2
3
4
5
6
7
8
9
10
11
use syrette::ptr::{SingletonPtr, TransientPtr};

use crate::interfaces::cat::ICat;
use crate::interfaces::dog::IDog;

pub trait IAnimalStore
{
    fn get_dog(&self) -> SingletonPtr<dyn IDog>;

    fn get_cat(&self) -> &TransientPtr<dyn ICat>;
}