#[repr(C)]
pub struct FramebufferTable { pub addr: u64, pub pitch: u32, pub width: u32, pub height: u32, pub bpp: u8, /* private fields */ }
Expand description

Contains the information about the framebuffer

Fields§

§addr: u64§pitch: u32§width: u32§height: u32§bpp: u8

Implementations§

source§

impl FramebufferTable

source

pub fn new( addr: u64, pitch: u32, width: u32, height: u32, bpp: u8, color_info_type: ColorInfoType ) -> Self

Create this table from a color info.

If the type is ColorInfoType::Text, bpp has to be 16.

source

pub fn color_info(&self) -> Option<ColorInfoType>

Get the color info from this table.

Trait Implementations§

source§

impl Debug for FramebufferTable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for FramebufferTable

source§

fn default() -> FramebufferTable

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

Auto Trait Implementations§

§

impl RefUnwindSafe for FramebufferTable

§

impl Send for FramebufferTable

§

impl Sync for FramebufferTable

§

impl Unpin for FramebufferTable

§

impl UnwindSafe for FramebufferTable

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.