@@ -315,7 +315,9 @@ pub trait StreamExt: Stream {
315315 ///
316316 /// Note that this function consumes the stream passed into it and returns a
317317 /// wrapped version of it, similar to the existing `filter` methods in the
318- /// standard library.
318+ /// standard library. Because of current HRTB limitations, reference to item
319+ /// can't be captured by the future. When it will be possible, method's signature
320+ /// may be changed.
319321 ///
320322 /// # Examples
321323 ///
@@ -544,10 +546,14 @@ pub trait StreamExt: Stream {
544546 Flatten :: new ( self )
545547 }
546548
547- /// Combinator similar to [`StreamExt::fold`] that holds internal state and produces a new stream.
549+ /// Combinator similar to [`StreamExt::fold`] that holds internal state
550+ /// and produces a new stream.
548551 ///
549- /// Accepts initial state and closure which will be applied to each element of the stream until provided closure
550- /// returns `None`. Once `None` is returned, stream will be terminated.
552+ /// Accepts initial state and closure which will be applied to each element
553+ /// of the stream until provided closure returns `None`. Once `None` is
554+ /// returned, stream will be terminated. Because of current HRTB limitations,
555+ /// `&mut` state can't be captured by the future. When it will be possible,
556+ /// method's signature may be changed.
551557 ///
552558 /// # Examples
553559 ///
@@ -580,8 +586,10 @@ pub trait StreamExt: Stream {
580586 ///
581587 /// This function, like `Iterator::skip_while`, will skip elements on the
582588 /// stream until the predicate `f` resolves to `false`. Once one element
583- /// returns false all future elements will be returned from the underlying
584- /// stream.
589+ /// returns `false`, all future elements will be returned from the underlying
590+ /// stream. Because of current HRTB limitations, reference to item can't be
591+ /// captured by the future. When it will be possible, method's signature may
592+ /// be changed.
585593 ///
586594 /// # Examples
587595 ///
@@ -611,7 +619,9 @@ pub trait StreamExt: Stream {
611619 ///
612620 /// This function, like `Iterator::take_while`, will take elements from the
613621 /// stream until the predicate `f` resolves to `false`. Once one element
614- /// returns false it will always return that the stream is done.
622+ /// returns `false` it will always return that the stream is done. Because
623+ /// of current HRTB limitations, reference to item can't be captured by
624+ /// the future. When it will be possible, method's signature may be changed.
615625 ///
616626 /// # Examples
617627 ///
@@ -1117,7 +1127,7 @@ pub trait StreamExt: Stream {
11171127 Forward :: new ( self , sink)
11181128 }
11191129
1120- /// Splits this `Stream + Sink` object into separate `Stream ` and `Sink `
1130+ /// Splits this `Stream + Sink` object into separate `Sink ` and `Stream `
11211131 /// objects.
11221132 ///
11231133 /// This can be useful when you want to split ownership between tasks, or
0 commit comments