pub fn fill_console_output_character(
    console_output: &mut impl AsConsoleOutputHandle,
    character:      char,
    length:         DWORD,
    write_coord:    impl IntoCoord,
) -> io::Result<DWORD> {
    let character = u16::try_from(character as u32).map_err(|_| io::Error::new(io::ErrorKind::InvalidInput, "fill_console_output_character: `character` exceeds maximum codepoint U+FFFF"))?;
    let mut written = 0;
    succeeded_to_result(unsafe { FillConsoleOutputCharacterW(console_output.as_raw_handle().cast(), character, length, write_coord.into_coord(), &mut written) })?;
    Ok(written)
}
/// \[[FillConsoleOutputCharacterW]\] Sets the character characters for a specified number of character cells, beginning at the specified coordinates in a screen buffer.
///
/// ### Example
/// ```
/// # use maulingmonkey_console_winapi_wrappers::*;
/// # use std::io::{self, *};
/// # let _ = (|| -> io::Result<()> {
/// assert_eq!(12, fill_console_output_character(&mut stdout(), 'X', 12, (0,0)).unwrap_or(12));
/// # Ok(())
/// # })();
/// ```
///
/// [FillConsoleOutputCharacterW]:  https://docs.microsoft.com/en-us/windows/console/fillconsoleoutputcharacter
\[[FillConsoleOutputCharacterW]\] Sets the character characters for a specified number of character cells, beginning at the specified coordinates in a screen buffer.
\ [[ FillConsoleOutputCharacterW ] \ ] Sets the character characters for a specified number of character cells beginning at the specified coordinates in a screen buffer .
pub fn fill_console_output_character(
    console_output: &mut impl AsConsoleOutputHandle,
    character:      char,
    length:         DWORD,
    write_coord:    impl IntoCoord,
) -> io::Result<DWORD> {
    let character = u16::try_from(character as u32).map_err(|_| io::Error::new(io::ErrorKind::InvalidInput, "fill_console_output_character: `character` exceeds maximum codepoint U+FFFF"))?;
    let mut written = 0;
    succeeded_to_result(unsafe { FillConsoleOutputCharacterW(console_output.as_raw_handle().cast(), character, length, write_coord.into_coord(), &mut written) })?;
    Ok(written)
}
pub fn fill_console_output_character ( console_output : & mut impl AsConsoleOutputHandle , character : char , length : DWORD , write_coord : impl IntoCoord , ) -> io :: Result < DWORD > { let character = u16 :: try_from ( character as u32 ) . map_err ( | _ | io :: Error :: new ( io :: ErrorKind :: InvalidInput , " " ) ) ? ; let mut written = 0 ; succeeded_to_result ( unsafe { FillConsoleOutputCharacterW ( console_output . as_raw_handle ( ) . cast ( ) , character , length , write_coord . into_coord ( ) , & mut written ) } ) ? ; Ok ( written ) }
\[[FillConsoleOutputCharacterW]\] Sets the character characters for a specified number of character cells, beginning at the specified coordinates in a screen buffer.
\ [[ FillConsoleOutputCharacterW ] \ ] Sets the character characters for a specified number of character cells beginning at the specified coordinates in a screen buffer .
console_output
&mut impl AsConsoleOutputHandle
character
char
length
DWORD
write_coord
impl IntoCoord
console_output
&mut impl AsConsoleOutputHandle
character
char
length
DWORD
write_coord
impl IntoCoord
example
None
use maulingmonkey_console_winapi_wrappers::*;
None
use std::io::{self, *};
None
let _ = (|| -> io::result<()> {
None
ok(())
None
})();
None