Struct vulkano::swapchain::display::DisplayMode[][src]

pub struct DisplayMode { /* fields omitted */ }
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 a reference to 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

Builds a pointer to this type from a raw pointer.

Returns true if the size is suitable to store a type like this.

Returns the size of an individual element.

Performs the conversion.

Performs the conversion.

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.