pub fn read_console_input_one<'i>(console_input: &mut impl AsConsoleInputHandle) -> io::Result<INPUT_RECORD> {
    let mut record : INPUT_RECORD = unsafe { zeroed() };
    let mut read = 0;
    succeeded_to_result(unsafe { ReadConsoleInputW(console_input.as_raw_handle().cast(), &mut record, 1, &mut read) })?;
    debug_assert_eq!(read, 1);
    Ok(record)
}
/// \[[ReadConsoleInput]\] Reads data from a console input buffer and removes it from the buffer.
///
/// ### Example
/// ```
/// # use maulingmonkey_console_winapi_wrappers::*;
/// # use std::io::{self, *};
/// # let _ = (|| -> io::Result<()> {
/// let record = read_console_input_one(&mut stdin())?;
/// # Ok(())
/// # })();
/// ```
///
/// [ReadConsoleInput]: https://docs.microsoft.com/en-us/windows/console/readconsoleinput
\[[ReadConsoleInput]\] Reads data from a console input buffer and removes it from the buffer.
\ [[ ReadConsoleInput ] \ ] Reads data from a console input buffer and removes it from the buffer .
pub fn read_console_input_one<'i>(console_input: &mut impl AsConsoleInputHandle) -> io::Result<INPUT_RECORD> {
    let mut record : INPUT_RECORD = unsafe { zeroed() };
    let mut read = 0;
    succeeded_to_result(unsafe { ReadConsoleInputW(console_input.as_raw_handle().cast(), &mut record, 1, &mut read) })?;
    debug_assert_eq!(read, 1);
    Ok(record)
}
pub fn read_console_input_one < ' i > ( console_input : & mut impl AsConsoleInputHandle ) -> io :: Result < INPUT_RECORD > { let mut record : INPUT_RECORD = unsafe { zeroed ( ) } ; let mut read = 0 ; succeeded_to_result ( unsafe { ReadConsoleInputW ( console_input . as_raw_handle ( ) . cast ( ) , & mut record , 1 , & mut read ) } ) ? ; debug_assert_eq ! ( read 1 ) ; Ok ( record ) }
\[[ReadConsoleInput]\] Reads data from a console input buffer and removes it from the buffer.
\ [[ ReadConsoleInput ] \ ] Reads data from a console input buffer and removes it from the buffer .
console_input
&mut impl AsConsoleInputHandle
console_input
&mut impl AsConsoleInputHandle
example
None
use maulingmonkey_console_winapi_wrappers::*;
None
use std::io::{self, *};
None
let _ = (|| -> io::result<()> {
let record = read_console_input_one(&mut stdin())?.
let record = read_console_input_one ( &mut stdin () ) ? .
ok(())
None
})();
None