Struct multiboot2_header::AddressHeaderTag
source · #[repr(C)]pub struct AddressHeaderTag { /* private fields */ }Expand description
This information does not need to be provided if the kernel image is in ELF format, but it must be provided if the image is in a.out format or in some other format. Required for legacy boot (BIOS). Determines load addresses.
Implementations§
source§impl AddressHeaderTag
impl AddressHeaderTag
pub const fn new( flags: HeaderTagFlag, header_addr: u32, load_addr: u32, load_end_addr: u32, bss_end_addr: u32 ) -> Self
pub const fn typ(&self) -> HeaderTagType
pub const fn flags(&self) -> HeaderTagFlag
pub const fn size(&self) -> u32
pub const fn header_addr(&self) -> u32
pub const fn load_addr(&self) -> u32
pub const fn load_end_addr(&self) -> u32
pub const fn bss_end_addr(&self) -> u32
Trait Implementations§
source§impl Clone for AddressHeaderTag
impl Clone for AddressHeaderTag
source§fn clone(&self) -> AddressHeaderTag
fn clone(&self) -> AddressHeaderTag
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 AddressHeaderTag
impl Debug for AddressHeaderTag
source§impl Hash for AddressHeaderTag
impl Hash for AddressHeaderTag
source§impl Ord for AddressHeaderTag
impl Ord for AddressHeaderTag
source§fn cmp(&self, other: &AddressHeaderTag) -> Ordering
fn cmp(&self, other: &AddressHeaderTag) -> 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 AddressHeaderTag
impl PartialEq for AddressHeaderTag
source§fn eq(&self, other: &AddressHeaderTag) -> bool
fn eq(&self, other: &AddressHeaderTag) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for AddressHeaderTag
impl PartialOrd for AddressHeaderTag
source§fn partial_cmp(&self, other: &AddressHeaderTag) -> Option<Ordering>
fn partial_cmp(&self, other: &AddressHeaderTag) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for AddressHeaderTag
impl Eq for AddressHeaderTag
impl StructuralEq for AddressHeaderTag
impl StructuralPartialEq for AddressHeaderTag
Auto Trait Implementations§
impl RefUnwindSafe for AddressHeaderTag
impl Send for AddressHeaderTag
impl Sync for AddressHeaderTag
impl Unpin for AddressHeaderTag
impl UnwindSafe for AddressHeaderTag
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