#[repr(C, align(8))]pub struct EntryEfi32HeaderTag { /* private fields */ }
Expand description
Contains the entry address for EFI i386 machine state.
This tag is taken into account only on EFI i386 platforms when Multiboot2 image header contains EFI boot services tag. Then entry point specified in ELF header and the entry address tag of Multiboot2 header are ignored.
Technically, this is equivalent to the crate::EntryAddressHeaderTag
but with a different
crate::HeaderTagType
.
Implementations§
Source§impl EntryEfi32HeaderTag
impl EntryEfi32HeaderTag
Sourcepub const fn new(flags: HeaderTagFlag, entry_addr: u32) -> Self
pub const fn new(flags: HeaderTagFlag, entry_addr: 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.
Sourcepub const fn entry_addr(&self) -> u32
pub const fn entry_addr(&self) -> u32
Returns the entry address.
Trait Implementations§
Source§impl Clone for EntryEfi32HeaderTag
impl Clone for EntryEfi32HeaderTag
Source§fn clone(&self) -> EntryEfi32HeaderTag
fn clone(&self) -> EntryEfi32HeaderTag
Returns a duplicate 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 EntryEfi32HeaderTag
impl Debug for EntryEfi32HeaderTag
Source§impl Hash for EntryEfi32HeaderTag
impl Hash for EntryEfi32HeaderTag
Source§impl MaybeDynSized for EntryEfi32HeaderTag
impl MaybeDynSized for EntryEfi32HeaderTag
Source§const BASE_SIZE: usize = 12usize
const BASE_SIZE: usize = 12usize
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 EntryEfi32HeaderTag
impl Ord for EntryEfi32HeaderTag
Source§fn cmp(&self, other: &EntryEfi32HeaderTag) -> Ordering
fn cmp(&self, other: &EntryEfi32HeaderTag) -> 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 EntryEfi32HeaderTag
impl PartialEq for EntryEfi32HeaderTag
Source§impl PartialOrd for EntryEfi32HeaderTag
impl PartialOrd for EntryEfi32HeaderTag
Source§impl Tag for EntryEfi32HeaderTag
impl Tag for EntryEfi32HeaderTag
Source§const ID: HeaderTagType = HeaderTagType::EntryAddressEFI32
const ID: HeaderTagType = HeaderTagType::EntryAddressEFI32
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 EntryEfi32HeaderTag
impl Eq for EntryEfi32HeaderTag
impl StructuralPartialEq for EntryEfi32HeaderTag
Auto Trait Implementations§
impl Freeze for EntryEfi32HeaderTag
impl RefUnwindSafe for EntryEfi32HeaderTag
impl Send for EntryEfi32HeaderTag
impl Sync for EntryEfi32HeaderTag
impl Unpin for EntryEfi32HeaderTag
impl UnwindSafe for EntryEfi32HeaderTag
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