fn read_exact_volatile(&mut self, mut slice: VolatileSlice) -> Result<()> {
        while !slice.is_empty() {
            let bytes_read = self.read_volatile(slice)?;
            if bytes_read == 0 {
                return Err(Error::from(ErrorKind::UnexpectedEof));
            }
            // Will panic if read_volatile read more bytes than we gave it, which would be worthy of
            // a panic.
            slice = slice.offset(bytes_read).unwrap();
        }
        Ok(())
    }
/// Reads bytes from this into the given slice until all bytes in the slice are written, or an
/// error is returned.
Reads bytes from this into the given slice until all bytes in the slice are written, or an
error is returned.
Reads bytes from this into the given slice until all bytes in the slice are written or an error is returned .
fn read_exact_volatile(&mut self, mut slice: VolatileSlice) -> Result<()> {
        while !slice.is_empty() {
            let bytes_read = self.read_volatile(slice)?;
            if bytes_read == 0 {
                return Err(Error::from(ErrorKind::UnexpectedEof));
            }
            // Will panic if read_volatile read more bytes than we gave it, which would be worthy of
            // a panic.
            slice = slice.offset(bytes_read).unwrap();
        }
        Ok(())
    }
fn read_exact_volatile ( & mut self , mut slice : VolatileSlice ) -> Result < ( ) > { while ! slice . is_empty ( ) { let bytes_read = self . read_volatile ( slice ) ? ; if bytes_read == 0 { return Err ( Error :: from ( ErrorKind :: UnexpectedEof ) ) ; } // Will panic if read_volatile read more bytes than we gave it, which would be worthy of // a panic. slice = slice . offset ( bytes_read ) . unwrap ( ) ; } Ok ( ( ) ) }
Reads bytes from this into the given slice until all bytes in the slice are written, or an
error is returned.
Reads bytes from this into the given slice until all bytes in the slice are written or an error is returned .
&mut self
slice
VolatileSlice