pub fn fill_console_output_attribute(
    console_output: &mut impl AsConsoleOutputHandle,
    attribute:      impl Into<Attributes>,
    length:         DWORD,
    write_coord:    impl IntoCoord,
) -> io::Result<DWORD> {
    let mut written = 0;
    succeeded_to_result(unsafe { FillConsoleOutputAttribute(console_output.as_raw_handle().cast(), attribute.into().into(), length, write_coord.into_coord(), &mut written) })?;
    Ok(written)
}
/// \[[FillConsoleOutputAttribute]\] Sets the character attributes 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_attribute(&mut stdout(), FOREGROUND_GREEN, 12, (0,0))?);
/// # Ok(())
/// # })();
/// ```
///
/// [FillConsoleOutputAttribute]:   https://docs.microsoft.com/en-us/windows/console/fillconsoleoutputattribute
\[[FillConsoleOutputAttribute]\] Sets the character attributes for a specified number of character cells, beginning at the specified coordinates in a screen buffer.
\ [[ FillConsoleOutputAttribute ] \ ] Sets the character attributes for a specified number of character cells beginning at the specified coordinates in a screen buffer .
pub fn fill_console_output_attribute(
    console_output: &mut impl AsConsoleOutputHandle,
    attribute:      impl Into<Attributes>,
    length:         DWORD,
    write_coord:    impl IntoCoord,
) -> io::Result<DWORD> {
    let mut written = 0;
    succeeded_to_result(unsafe { FillConsoleOutputAttribute(console_output.as_raw_handle().cast(), attribute.into().into(), length, write_coord.into_coord(), &mut written) })?;
    Ok(written)
}
pub fn fill_console_output_attribute ( console_output : & mut impl AsConsoleOutputHandle , attribute : impl Into < Attributes > , length : DWORD , write_coord : impl IntoCoord , ) -> io :: Result < DWORD > { let mut written = 0 ; succeeded_to_result ( unsafe { FillConsoleOutputAttribute ( console_output . as_raw_handle ( ) . cast ( ) , attribute . into ( ) . into ( ) , length , write_coord . into_coord ( ) , & mut written ) } ) ? ; Ok ( written ) }
\[[FillConsoleOutputAttribute]\] Sets the character attributes for a specified number of character cells, beginning at the specified coordinates in a screen buffer.
\ [[ FillConsoleOutputAttribute ] \ ] Sets the character attributes for a specified number of character cells beginning at the specified coordinates in a screen buffer .
console_output
&mut impl AsConsoleOutputHandle
attribute
impl Into<Attributes>
length
DWORD
write_coord
impl IntoCoord
console_output
&mut impl AsConsoleOutputHandle
attribute
impl Into<Attributes>
length
DWORD
write_coord
impl IntoCoord
example
None
use maulingmonkey_console_winapi_wrappers::*;
None
use std::io::{self, *};
None
let _ = (|| -> io::result<()> {
assert_eq!(12, fill_console_output_attribute(&mut stdout(), FOREGROUND_GREEN, 12, (0,0))?).
assert_eq! ( 12 fill_console_output_attribute ( &mut stdout () FOREGROUND_GREEN 12 ( 0 0 )) ? ) .
ok(())
None
})();
None