Skip to content

Commit

Permalink
Add Map::into_inner()
Browse files Browse the repository at this point in the history
Add a method to convert back into the source stream.
  • Loading branch information
zeenix committed Dec 2, 2022
1 parent 047e113 commit 2d9655e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/adapters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,13 @@ pin_project_lite::pin_project! {
}
}

impl<S, F> Map<S, F> {
/// Convert to source stream.
pub fn into_inner(self) -> S {
self.stream
}
}

impl<S, F, R> OrderedStream for Map<S, F>
where
S: OrderedStream,
Expand Down

0 comments on commit 2d9655e

Please sign in to comment.