#[repr(C)]
pub struct Framebuffer {
Show 14 fields pub address: *mut u8, pub width: u16, pub height: u16, pub pitch: u16, pub bpp: u16, pub memory_model: u8, pub red_mask_size: u8, pub red_mask_shift: u8, pub green_mask_size: u8, pub green_mask_shift: u8, pub blue_mask_size: u8, pub blue_mask_shift: u8, pub edid_size: u64, pub edid: *mut u8, /* private fields */
}
Expand description

Framebuffer structure

Fields

address: *mut u8

The address of the framebuffer

width: u16

The width of the framebuffer

height: u16

The height of the framebuffer

pitch: u16

The pitch of the framebuffer

bpp: u16

How many bits are present per pixel

memory_model: u8

The memory model of the framebuffer

red_mask_size: u8

The red mask size

red_mask_shift: u8

The red mask shift amount

green_mask_size: u8

The green mask size

green_mask_shift: u8

The green mask shift amount

blue_mask_size: u8

The blue mask size

blue_mask_shift: u8

The blue mask shift amount

edid_size: u64

The size of the EDID

edid: *mut u8

A pointer to the EDID

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

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.