Macro has::impl_has [] [src]

macro_rules! impl_has {
    ( $implementer:ty, $typ:ty, $identifier:ident ) => { ... };
}

Macro to consisely implement HasMut for a struct. The macro takes as argument the struct name, the type of the contained object and the identifier, within the struct, of the contained object; in that order.