Macro cursive::inner_getters [−][src]
macro_rules! inner_getters {
(self.$v : ident : $t : ty) => { ... };
}
Expand description
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> {
cursive_core::inner_getters!(self.view: T);
}
impl<T: View> ViewWrapper for FooView<T> {
cursive_core::wrap_impl!(self.view: T);
}