Macro cursive::inner_getters [] [src]

macro_rules! inner_getters {
    (self.$v:ident: $t:ty) => { ... };
}

Convenient macro to implement the getters for inner View in ViewWrapper.

It defines the get_inner and get_inner_mut implementations.

Examples

struct FooView<T: View> {
    view: T,
}

impl<T: View> FooView<T> {
    inner_getters!(self.view: T);
}

impl <T: View> ViewWrapper for FooView<T> {
    wrap_impl!(self.view: T);
}