pub struct Header {
    pub header_start: u32,
    /* private fields */
}
Expand description

Multiboot struct bootloaders mainly interact with

Fields

header_start: u32

the index at which the header starts

Implementations

Get the header by parsing it from a slice.

The needed portion of the slice is copied.

If true, then the modules have to be page aligned.

If true, then the modules have to be page aligned.

If true, memory information must be passed.

If true, memory information must be passed.

If true, then the mode_type, width, height and depth fields are valid and video information has to be passed.

If true, then the mode_type, width, height and depth fields are valid and video information has to be passed.

If true, then the header_addr, load_addr, load_end_addr, bss_end_addr and entry_addr fields are valid and must be used to load the kernel.

If true, then the header_addr, load_addr, load_end_addr, bss_end_addr and entry_addr fields are valid and must be used to load the kernel.

Get the load addresses specified in the Multiboot header.

If this function returns None the binary has to be loaded as an ELF instead.

Get the preferred video mode specified in the Multiboot header.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.