From 53402a006344a3f1b93a8ea9f66466adb0a64bf2 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Thu, 1 Sep 2016 11:56:11 -0700 Subject: [PATCH] Add link `wrap_impl!` doc --- src/view/view_wrapper.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/view/view_wrapper.rs b/src/view/view_wrapper.rs index fad4c99..c4529c3 100644 --- a/src/view/view_wrapper.rs +++ b/src/view/view_wrapper.rs @@ -10,6 +10,11 @@ use event::{Event, EventResult}; /// /// Default implementation forwards all calls to the child view. /// 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 { /// Get an immutable reference to the wrapped view. fn get_view(&self) -> &View; @@ -83,7 +88,9 @@ impl View for T { } } -/// Convenient macro to implement the ViewWrapper trait. +/// Convenient macro to implement the [`ViewWrapper`] trait. +/// +/// [`ViewWrapper`]: view/trait.ViewWrapper.html /// /// # Examples ///