fn read_raw(&self, out: &mut [u8]) -> Result<usize> {
        // Safe because read will only modify the pointer up to the length we give it and we check
        // the return result.
        let ret = unsafe { read(self.tty_fd(), out.as_mut_ptr() as *mut _, out.len()) };
        if ret < 0 {
            return errno_result();
        }

        Ok(ret as usize)
    }
/// Reads up to `out.len()` bytes from this terminal without any buffering.
///
/// This may block, depending on if non-blocking was enabled with `set_non_block` or if there
/// are any bytes to read. If there is at least one byte that is readable, this will not block.
Reads up to `out.len()` bytes from this terminal without any buffering.
This may block, depending on if non-blocking was enabled with `set_non_block` or if there
are any bytes to read. If there is at least one byte that is readable, this will not block.
Reads up to ` out . len () ` bytes from this terminal without any buffering . This may block depending on if non - blocking was enabled with ` set_non_block ` or if there are any bytes to read . If there is at least one byte that is readable this will not block .
fn read_raw(&self, out: &mut [u8]) -> Result<usize> {
        // Safe because read will only modify the pointer up to the length we give it and we check
        // the return result.
        let ret = unsafe { read(self.tty_fd(), out.as_mut_ptr() as *mut _, out.len()) };
        if ret < 0 {
            return errno_result();
        }
        Ok(ret as usize)
    }
fn read_raw ( & self , out : & mut [ u8 ] ) -> Result < usize > { // Safe because read will only modify the pointer up to the length we give it and we check // the return result. let ret = unsafe { read ( self . tty_fd ( ) , out . as_mut_ptr ( ) as * mut _ , out . len ( ) ) } ; if ret < 0 { return errno_result ( ) ; } Ok ( ret as usize ) }
Reads up to `out.len()` bytes from this terminal without any buffering.
Reads up to ` out . len () ` bytes from this terminal without any buffering .
&self
out
&mut [u8]
&self
out
&mut [u8]