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
sourceimpl 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
sourceimpl Clone for AddressHeaderTag
impl Clone for AddressHeaderTag
sourcefn clone(&self) -> AddressHeaderTag
fn clone(&self) -> AddressHeaderTag
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AddressHeaderTag
impl Debug for AddressHeaderTag
impl Copy 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more