pub struct DisplayMode { /* private fields */ }
Expand description

Represents a mode on a specific display.

A display mode describes a supported display resolution and refresh rate.

Implementations

Returns the display corresponding to this mode.

Returns the dimensions of the region that is visible on the monitor.

Returns the refresh rate of this mode.

The returned value is multiplied by 1000. As such the value is in terms of millihertz (mHz). For example, a 60Hz display mode would have a refresh rate of 60,000 mHz.

Trait Implementations

Formats the value using the given formatter. Read more
The type of the object.
Returns the raw Vulkan handle of the object.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. 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.