Trait show_notes::e024::Eatable

source ·
pub trait Eatable<T> {
    // Required method
    fn eat(&self) -> T;
}
Expand description

Demonstrate a generic trait.

Required Methods§

source

fn eat(&self) -> T

Implementations on Foreign Types§

source§

impl Eatable<String> for i32

source§

fn eat(&self) -> String

Implementors§