1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
pub trait Search { type Result; type Decoy; fn search( &self, item: &Self::Decoy )-> Self::Result; } pub trait Summarize<H> { type Protected; fn summary( self, handle: H )-> Self::Protected; }