pub struct IoReader<R> { /* private fields */ }Available on crate feature
std only.Expand description
A reader that reads from a std::io::Read.
Implementations§
Trait Implementations§
Source§impl<R> Reader for IoReader<R>where
R: Read,
impl<R> Reader for IoReader<R>where
R: Read,
Source§fn read(&mut self, bytes: &mut [u8]) -> Result<(), DecodeError>
fn read(&mut self, bytes: &mut [u8]) -> Result<(), DecodeError>
Fill the given
bytes argument with values. Exactly the length of the given slice must be filled, or else an error must be returned.
Fill the given bytes argument with values. Exactly the length of the given slice must be filled, or else an error must be returned. Read more