Add doc for impl From for Waker

This commit is contained in:
Son
2018-08-20 12:05:41 +10:00
parent 8a7048b72b
commit f8550a499f
+7
View File
@@ -188,6 +188,13 @@ pub fn will_wake_nonlocal(&self, other: &Waker) -> bool {
}
impl From<LocalWaker> for Waker {
/// Converts a [`LocalWaker`] into a [`Waker`].
///
/// This conversion forgets local waker and allocates a new waker with
/// the same inner.
///
/// [`LocalWaker`]: struct.LocalWaker.html
/// [`Waker`]: struct.Waker.html
#[inline]
fn from(local_waker: LocalWaker) -> Self {
local_waker.0