#[repr(C, align(8))]pub struct FramebufferHeaderTag { /* private fields */ }
Expand description
Specifies the preferred graphics mode. If this tag is present the bootloader assumes that the payload has framebuffer support. Note: This is only a recommended mode. Only relevant on legacy BIOS.
Implementations§
Source§impl FramebufferHeaderTag
impl FramebufferHeaderTag
Sourcepub const fn new(
flags: HeaderTagFlag,
width: u32,
height: u32,
depth: u32,
) -> Self
pub const fn new( flags: HeaderTagFlag, width: u32, height: u32, depth: u32, ) -> Self
Constructs a new tag.
Sourcepub const fn typ(&self) -> HeaderTagType
pub const fn typ(&self) -> HeaderTagType
Returns the HeaderTagType
.
Sourcepub const fn flags(&self) -> HeaderTagFlag
pub const fn flags(&self) -> HeaderTagFlag
Returns the HeaderTagFlag
s.
Trait Implementations§
Source§impl Clone for FramebufferHeaderTag
impl Clone for FramebufferHeaderTag
Source§fn clone(&self) -> FramebufferHeaderTag
fn clone(&self) -> FramebufferHeaderTag
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FramebufferHeaderTag
impl Debug for FramebufferHeaderTag
Source§impl Hash for FramebufferHeaderTag
impl Hash for FramebufferHeaderTag
Source§impl MaybeDynSized for FramebufferHeaderTag
impl MaybeDynSized for FramebufferHeaderTag
Source§const BASE_SIZE: usize = 20usize
const BASE_SIZE: usize = 20usize
The true base size of the struct without any implicit or additional
padding. Note that
size_of::<T>()
isn’t sufficient, as for example
the type could have three u32
fields, which would add an implicit
u32
padding. However, this constant must always fulfill
BASE_SIZE >= size_of::<Self::Header>()
. Read moreSource§type Header = HeaderTagHeader
type Header = HeaderTagHeader
The associated
Header
of this tag.Source§fn dst_len(_header: &Self::Header) -> Self::Metadata
fn dst_len(_header: &Self::Header) -> Self::Metadata
Returns the amount of items in the dynamically sized portion of the
DST. Note that this is not the amount of bytes. So if the dynamically
sized portion is 16 bytes in size and each element is 4 bytes big, then
this function must return 4. Read more
Source§fn payload(&self) -> &[u8]
fn payload(&self) -> &[u8]
Returns the payload, i.e., all memory that is not occupied by the
Header
of the type.Source§impl Ord for FramebufferHeaderTag
impl Ord for FramebufferHeaderTag
Source§fn cmp(&self, other: &FramebufferHeaderTag) -> Ordering
fn cmp(&self, other: &FramebufferHeaderTag) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FramebufferHeaderTag
impl PartialEq for FramebufferHeaderTag
Source§impl PartialOrd for FramebufferHeaderTag
impl PartialOrd for FramebufferHeaderTag
Source§impl Tag for FramebufferHeaderTag
impl Tag for FramebufferHeaderTag
Source§const ID: HeaderTagType = HeaderTagType::Framebuffer
const ID: HeaderTagType = HeaderTagType::Framebuffer
The ID of this tag. This should be unique across all implementors. Read more
Source§type IDType = HeaderTagType
type IDType = HeaderTagType
The ID type that identifies the tag.
impl Copy for FramebufferHeaderTag
impl Eq for FramebufferHeaderTag
impl StructuralPartialEq for FramebufferHeaderTag
Auto Trait Implementations§
impl Freeze for FramebufferHeaderTag
impl RefUnwindSafe for FramebufferHeaderTag
impl Send for FramebufferHeaderTag
impl Sync for FramebufferHeaderTag
impl Unpin for FramebufferHeaderTag
impl UnwindSafe for FramebufferHeaderTag
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more