Trait Eatable
show_notes::e024
pub trait Eatable<T> { fn eat(&self) -> T; }
Demonstrate a generic trait.
fn eat(&self) -> T
impl Eatable<String> for i32
fn eat(&self) -> String