aboutsummaryrefslogtreecommitdiff
path: root/examples/async/food.rs
blob: c2264cfb550ecb8f70b461f03797987148caac2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use crate::interfaces::food::IFood;

pub struct Food {}

impl Food
{
    pub fn new() -> Self
    {
        Self {}
    }
}

impl IFood for Food
{
    fn eat(&self)
    {
        println!("Ate food");
    }
}