logo
pub struct Output { /* private fields */ }

Implementations

Gets the height of the output in pixels.

Returns

the height of the output in pixels

Gets the physical height of the output. In some cases (such as as a projector), the value returned here might correspond to nominal resolution rather than the actual physical size of the output device.

Returns

the height of the output in millimeters. A value of 0 indicates that the height is unknown

Gets the physical width of the output. In some cases (such as as a projector), the value returned here might correspond to nominal resolution rather than the actual physical size of the output device.

Returns

the height of the output in millimeters. A value of 0 indicates the width is unknown

Gets the number of times per second that the output device refreshes the display contents.

Returns

the refresh rate of the output device. A value of zero indicates that the refresh rate is unknown.

For an output device where each pixel is made up of smaller components with different colors, returns the layout of the subpixel components.

Returns

the order of subpixel components for the output device

Gets the width of the output in pixels.

Returns

the width of the output in pixels

Gets the X position of the output with respect to the coordinate system of the screen.

Returns

the X position of the output as a pixel offset from the left side of the screen coordinate space

Gets the Y position of the output with respect to the coordinate system of the screen.

Returns

the Y position of the output as a pixel offset from the top side of the screen coordinate space

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

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.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

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

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

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.