Add link wrap_impl! doc

This commit is contained in:
Alexandre Bury 2016-09-01 11:56:11 -07:00
parent 24511ae5f1
commit 53402a0063

View File

@ -10,6 +10,11 @@ use event::{Event, EventResult};
/// ///
/// Default implementation forwards all calls to the child view. /// Default implementation forwards all calls to the child view.
/// Overrides some methods as desired. /// Overrides some methods as desired.
///
/// You can use the [`wrap_impl!`] macro to define `get_view` and
/// `get_view_mut` for you.
///
/// [`wrap_impl!`]: ../macro.wrap_impl.html
pub trait ViewWrapper { pub trait ViewWrapper {
/// Get an immutable reference to the wrapped view. /// Get an immutable reference to the wrapped view.
fn get_view(&self) -> &View; fn get_view(&self) -> &View;
@ -83,7 +88,9 @@ impl<T: ViewWrapper> View for T {
} }
} }
/// Convenient macro to implement the ViewWrapper trait. /// Convenient macro to implement the [`ViewWrapper`] trait.
///
/// [`ViewWrapper`]: view/trait.ViewWrapper.html
/// ///
/// # Examples /// # Examples
/// ///