Struct multiboot2_header::EntryAddressHeaderTag
source · #[repr(C, align(8))]pub struct EntryAddressHeaderTag { /* private fields */ }Expand description
Specifies the physical address to which the boot loader should jump in order to start running the operating system. Not needed for ELF files.
Implementations§
source§impl EntryAddressHeaderTag
impl EntryAddressHeaderTag
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 HeaderTagFlags.
sourcepub const fn entry_addr(&self) -> u32
pub const fn entry_addr(&self) -> u32
Returns the entry address.
Trait Implementations§
source§impl Clone for EntryAddressHeaderTag
impl Clone for EntryAddressHeaderTag
source§fn clone(&self) -> EntryAddressHeaderTag
fn clone(&self) -> EntryAddressHeaderTag
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 EntryAddressHeaderTag
impl Debug for EntryAddressHeaderTag
source§impl Hash for EntryAddressHeaderTag
impl Hash for EntryAddressHeaderTag
source§impl MaybeDynSized for EntryAddressHeaderTag
impl MaybeDynSized for EntryAddressHeaderTag
§type Header = HeaderTagHeader
type Header = HeaderTagHeader
The associated
Header of this tag.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§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 EntryAddressHeaderTag
impl Ord for EntryAddressHeaderTag
source§fn cmp(&self, other: &EntryAddressHeaderTag) -> Ordering
fn cmp(&self, other: &EntryAddressHeaderTag) -> 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 EntryAddressHeaderTag
impl PartialEq for EntryAddressHeaderTag
source§impl PartialOrd for EntryAddressHeaderTag
impl PartialOrd for EntryAddressHeaderTag
source§impl Tag for EntryAddressHeaderTag
impl Tag for EntryAddressHeaderTag
§type IDType = HeaderTagType
type IDType = HeaderTagType
The ID type that identifies the tag.
source§const ID: HeaderTagType = HeaderTagType::EntryAddress
const ID: HeaderTagType = HeaderTagType::EntryAddress
The ID of this tag. This should be unique across all implementors. Read more
impl Copy for EntryAddressHeaderTag
impl Eq for EntryAddressHeaderTag
impl StructuralPartialEq for EntryAddressHeaderTag
Auto Trait Implementations§
impl Freeze for EntryAddressHeaderTag
impl RefUnwindSafe for EntryAddressHeaderTag
impl Send for EntryAddressHeaderTag
impl Sync for EntryAddressHeaderTag
impl Unpin for EntryAddressHeaderTag
impl UnwindSafe for EntryAddressHeaderTag
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)