pub fn peek_console_input_one(console_input: &impl AsConsoleInputHandle) -> io::Result<Option<INPUT_RECORD>> {
    let mut record : INPUT_RECORD = unsafe { zeroed() };
    let empty = peek_console_input_with(console_input, std::slice::from_mut(&mut record))?.is_empty();
    Ok(if empty { None } else { Some(record) })
}
/// \[[PeekConsoleInput]\] Reads data from the specified console input buffer without removing it from the buffer.
///
/// ### Example
/// ```
/// # use maulingmonkey_console_winapi_wrappers::*;
/// # use std::io::{self, *};
/// # let _ = (|| -> io::Result<()> {
/// if let Some(record) = peek_console_input_one(&stdin())? {
///     // ...
/// }
/// # Ok(())
/// # })();
/// ```
///
/// [PeekConsoleInput]: https://docs.microsoft.com/en-us/windows/console/peekconsoleinput
\[[PeekConsoleInput]\] Reads data from the specified console input buffer without removing it from the buffer.
\ [[ PeekConsoleInput ] \ ] Reads data from the specified console input buffer without removing it from the buffer .
pub fn peek_console_input_one(console_input: &impl AsConsoleInputHandle) -> io::Result<Option<INPUT_RECORD>> {
    let mut record : INPUT_RECORD = unsafe { zeroed() };
    let empty = peek_console_input_with(console_input, std::slice::from_mut(&mut record))?.is_empty();
    Ok(if empty { None } else { Some(record) })
}
pub fn peek_console_input_one ( console_input : & impl AsConsoleInputHandle ) -> io :: Result < Option < INPUT_RECORD > > { let mut record : INPUT_RECORD = unsafe { zeroed ( ) } ; let empty = peek_console_input_with ( console_input , std :: slice :: from_mut ( & mut record ) ) ? . is_empty ( ) ; Ok ( if empty { None } else { Some ( record ) } ) }
\[[PeekConsoleInput]\] Reads data from the specified console input buffer without removing it from the buffer.
\ [[ PeekConsoleInput ] \ ] Reads data from the specified console input buffer without removing it from the buffer .
console_input
&impl AsConsoleInputHandle
console_input
&impl AsConsoleInputHandle
example
None
use maulingmonkey_console_winapi_wrappers::*;
None
use std::io::{self, *};
None
let _ = (|| -> io::result<()> {
if let Some(record) = peek_console_input_one(&stdin()).
if let Some ( record ) = peek_console_input_one ( &stdin () ) .
ok(())
None
})();
None