Struct multiboot2_header::Multiboot2BasicHeader
source · [−]#[repr(C)]pub struct Multiboot2BasicHeader { /* private fields */ }Expand description
Use this only if you know what you do. You probably want to use
Multiboot2Header instead.
The “basic” Multiboot2 header. This means only the properties, that are known during compile time. All other information are derived during runtime from the size property.
Implementations
sourceimpl Multiboot2BasicHeader
impl Multiboot2BasicHeader
sourcepub const fn verify_checksum(&self) -> bool
pub const fn verify_checksum(&self) -> bool
Verifies that a Multiboot2 header is valid.
sourcepub const fn calc_checksum(magic: u32, arch: HeaderTagISA, length: u32) -> u32
pub const fn calc_checksum(magic: u32, arch: HeaderTagISA, length: u32) -> u32
Calculates the checksum as described in the spec.
sourcepub const fn header_magic(&self) -> u32
pub const fn header_magic(&self) -> u32
Returns
pub const fn arch(&self) -> HeaderTagISA
pub const fn length(&self) -> u32
pub const fn checksum(&self) -> u32
sourcepub fn tag_iter(&self) -> Multiboot2HeaderTagIterⓘNotable traits for Multiboot2HeaderTagIterimpl Iterator for Multiboot2HeaderTagIter type Item = *const HeaderTag;
pub fn tag_iter(&self) -> Multiboot2HeaderTagIterⓘNotable traits for Multiboot2HeaderTagIterimpl Iterator for Multiboot2HeaderTagIter type Item = *const HeaderTag;
Trait Implementations
sourceimpl Clone for Multiboot2BasicHeader
impl Clone for Multiboot2BasicHeader
sourcefn clone(&self) -> Multiboot2BasicHeader
fn clone(&self) -> Multiboot2BasicHeader
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 Multiboot2BasicHeader
impl Debug for Multiboot2BasicHeader
impl Copy for Multiboot2BasicHeader
Auto Trait Implementations
impl RefUnwindSafe for Multiboot2BasicHeader
impl Send for Multiboot2BasicHeader
impl Sync for Multiboot2BasicHeader
impl Unpin for Multiboot2BasicHeader
impl UnwindSafe for Multiboot2BasicHeader
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