UperReaders can be created from any type implementing ScopedBitRead. However, UperReader::from obviously consumes this type. Users of UperReader may want to get the original ScopedBitReader back out after they are done with the UperReader. This patch provides an into_bits function which returns the underlying ScopedBitRead type, consuming the UperReader.
UperReader
s can be created from any type implementingScopedBitRead
. However,UperReader::from
obviously consumes this type. Users ofUperReader
may want to get the originalScopedBitReader
back out after they are done with theUperReader
. This patch provides aninto_bits
function which returns the underlyingScopedBitRead
type, consuming theUperReader
.