From 9c00d0b90391da247f138767a2d625f0c5bf99c4 Mon Sep 17 00:00:00 2001 From: Wonwoo Choi Date: Thu, 19 Sep 2019 18:34:31 +0900 Subject: [PATCH] Rename: extend_with_stream => stream_extend --- src/stream/extend.rs | 6 +++--- src/vec/extend.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stream/extend.rs b/src/stream/extend.rs index 8e1c963a..35c90644 100644 --- a/src/stream/extend.rs +++ b/src/stream/extend.rs @@ -21,7 +21,7 @@ use crate::stream::{IntoStream, Stream}; /// /// let mut v: Vec = vec![1, 2]; /// let s = stream::repeat(3usize).take(3); -/// v.extend_with_stream(s).await; +/// v.stream_extend(s).await; /// /// assert_eq!(v, vec![1, 2, 3, 3, 3]); /// # @@ -30,14 +30,14 @@ use crate::stream::{IntoStream, Stream}; #[cfg_attr(feature = "docs", doc(cfg(unstable)))] pub trait Extend { /// Extends a collection with the contents of a stream. - fn extend_with_stream<'a, T: IntoStream + 'a>( + fn stream_extend<'a, T: IntoStream + 'a>( &'a mut self, stream: T, ) -> Pin + 'a>>; } impl Extend<()> for () { - fn extend_with_stream<'a, T: IntoStream + 'a>( + fn stream_extend<'a, T: IntoStream + 'a>( &'a mut self, stream: T, ) -> Pin + 'a>> { diff --git a/src/vec/extend.rs b/src/vec/extend.rs index 33df5a90..2ebcf344 100644 --- a/src/vec/extend.rs +++ b/src/vec/extend.rs @@ -4,7 +4,7 @@ use crate::future::Future; use crate::stream::{Extend, IntoStream, Stream}; impl Extend for Vec { - fn extend_with_stream<'a, S: IntoStream + 'a>( + fn stream_extend<'a, S: IntoStream + 'a>( &'a mut self, stream: S, ) -> Pin + 'a>> {