pub fn write_console_output_attribute(console_output: &mut impl AsConsoleOutputHandle, attributes: &[Attributes], write_coord: impl IntoCoord) -> io::Result<usize> {
    let length = attributes.len().try_into().unwrap_or(!0);
    let mut written = 0;
    succeeded_to_result(unsafe { WriteConsoleOutputAttribute(console_output.as_raw_handle().cast(), attributes.as_ptr().cast(), length, write_coord.into_coord(), &mut written) })?;
    Ok(written as _)
}
/// \[[WriteConsoleOutputAttribute]\] Copies a number of character attributes to consecutive cells of a console screen buffer, beginning at a specified location.
///
/// ### Example
/// ```
/// # use maulingmonkey_console_winapi_wrappers::*;
/// # use std::io::{self, *};
/// # let _ = (|| -> io::Result<()> {
/// write_console_output_attribute(&mut stdout(), &[FOREGROUND_GREEN], (1,2))?;
/// # Ok(())
/// # })();
/// ```
///
/// [WriteConsoleOutputAttribute]:  https://docs.microsoft.com/en-us/windows/console/writeconsoleoutputattribute
\[[WriteConsoleOutputAttribute]\] Copies a number of character attributes to consecutive cells of a console screen buffer, beginning at a specified location.
\ [[ WriteConsoleOutputAttribute ] \ ] Copies a number of character attributes to consecutive cells of a console screen buffer beginning at a specified location .
pub fn write_console_output_attribute(console_output: &mut impl AsConsoleOutputHandle, attributes: &[Attributes], write_coord: impl IntoCoord) -> io::Result<usize> {
    let length = attributes.len().try_into().unwrap_or(!0);
    let mut written = 0;
    succeeded_to_result(unsafe { WriteConsoleOutputAttribute(console_output.as_raw_handle().cast(), attributes.as_ptr().cast(), length, write_coord.into_coord(), &mut written) })?;
    Ok(written as _)
}
pub fn write_console_output_attribute ( console_output : & mut impl AsConsoleOutputHandle , attributes : & [ Attributes ] , write_coord : impl IntoCoord ) -> io :: Result < usize > { let length = attributes . len ( ) . try_into ( ) . unwrap_or ( ! 0 ) ; let mut written = 0 ; succeeded_to_result ( unsafe { WriteConsoleOutputAttribute ( console_output . as_raw_handle ( ) . cast ( ) , attributes . as_ptr ( ) . cast ( ) , length , write_coord . into_coord ( ) , & mut written ) } ) ? ; Ok ( written as _ ) }
\[[WriteConsoleOutputAttribute]\] Copies a number of character attributes to consecutive cells of a console screen buffer, beginning at a specified location.
\ [[ WriteConsoleOutputAttribute ] \ ] Copies a number of character attributes to consecutive cells of a console screen buffer beginning at a specified location .
console_output
&mut impl AsConsoleOutputHandle
attributes
&[Attributes]
write_coord
impl IntoCoord
console_output
&mut impl AsConsoleOutputHandle
attributes
&[Attributes]
write_coord
impl IntoCoord
example
None
use maulingmonkey_console_winapi_wrappers::*;
None
use std::io::{self, *};
None
let _ = (|| -> io::result<()> {
write_console_output_attribute(&mut stdout(), &[FOREGROUND_GREEN], (1,2))?.
write_console_output_attribute ( &mut stdout () & [ FOREGROUND_GREEN ] ( 1 2 )) ? .
ok(())
None
})();
None