1 2 3 4 5 6 7 8
pub trait HasHandle<H> { fn handle(&self) -> &H; } impl<H> HasHandle<H> for H { fn handle(&self) -> &H { self } }