Skip to content

Commit 49853c6

Browse files
Add reader.into_inner (#426)
1 parent dd6bd04 commit 49853c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/reader.rs

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ impl<'a, R: Read> Reader<'a, R> {
4242
}
4343
}
4444

45+
/// Consume self, returning inner Reader
46+
#[inline]
47+
pub fn into_inner(self) -> &'a mut R {
48+
self.inner
49+
}
50+
4551
/// Return the unused bits
4652
///
4753
/// Once the parsing is complete for a struct, if the total size of the field using the `bits` attribute

0 commit comments

Comments
 (0)