Macro inherit

Source
macro_rules! inherit {
    ($self:ident = $b:ident => $fun:expr) => { ... };
}