Struct crossterm_winapi::ConsoleMode[][src]

pub struct ConsoleMode { /* fields omitted */ }
Expand description

A wrapper around a screen buffer, focusing on calls to get and set the console mode.

This wraps SetConsoleMode and GetConsoleMode.

Implementations

Create a new ConsoleMode instance.

This will use the standard output as its handle. When you explicitly want to specify the handle used for the function calls use ConsoleMode::from(handle) instead.

Set the console mode to the given console mode.

This function sets the dwMode.

This wraps SetConsoleMode.

Get the console mode.

This function returns the lpMode.

This wraps GetConsoleMode.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.