Module multiboot2::builder

source ·
Expand description

Module for the builder-feature.

Structs

  • A helper type to create boxed DST, i.e., tags with a dynamic size for the builder. This is tricky in Rust. This type behaves similar to the regular Box type except that it ensure the same layout is used for the (explicit) allocation and the (implicit) deallocation of memory. Otherwise, I didn’t found any way to figure out the right layout for a DST. Miri always reported issues that the deallocation used a wrong layout.
  • Builder to construct a valid Multiboot2 information dynamically at runtime. The tags will appear in the order of their corresponding enumeration, except for the END tag.

Traits

  • Helper trait for all structs that need to be serialized that do not implement TagTrait.