Lines Matching full:lines
6 use tokio::io::{AsyncBufRead, Lines};
9 /// A wrapper around [`tokio::io::Lines`] that implements [`Stream`].
11 /// [`tokio::io::Lines`]: struct@tokio::io::Lines
17 inner: Lines<R>,
23 pub fn new(lines: Lines<R>) -> Self { in new()
24 Self { inner: lines } in new()
27 /// Get back the inner `Lines`.
28 pub fn into_inner(self) -> Lines<R> { in into_inner()
32 /// Obtain a pinned reference to the inner `Lines<R>`.
34 pub fn as_pin_mut(self: Pin<&mut Self>) -> Pin<&mut Lines<R>> { in as_pin_mut()
50 impl<R> AsRef<Lines<R>> for LinesStream<R> {
51 fn as_ref(&self) -> &Lines<R> { in as_ref()
56 impl<R> AsMut<Lines<R>> for LinesStream<R> {
57 fn as_mut(&mut self) -> &mut Lines<R> { in as_mut()