Struct multiboot2_header::Multiboot2BasicHeader
source · #[repr(C)]pub struct Multiboot2BasicHeader { /* private fields */ }Expand description
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§
source§impl 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.
pub const fn header_magic(&self) -> u32
pub const fn arch(&self) -> HeaderTagISA
pub const fn length(&self) -> u32
pub const fn checksum(&self) -> u32
sourcepub fn tag_iter(&self) -> Multiboot2HeaderTagIter ⓘ
pub fn tag_iter(&self) -> Multiboot2HeaderTagIter ⓘ
Trait Implementations§
source§impl Clone for Multiboot2BasicHeader
impl Clone for Multiboot2BasicHeader
source§fn clone(&self) -> Multiboot2BasicHeader
fn clone(&self) -> Multiboot2BasicHeader
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 Multiboot2BasicHeader
impl Debug for Multiboot2BasicHeader
source§impl Hash for Multiboot2BasicHeader
impl Hash for Multiboot2BasicHeader
source§impl Ord for Multiboot2BasicHeader
impl Ord for Multiboot2BasicHeader
source§fn cmp(&self, other: &Multiboot2BasicHeader) -> Ordering
fn cmp(&self, other: &Multiboot2BasicHeader) -> 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 Multiboot2BasicHeader
impl PartialEq for Multiboot2BasicHeader
source§fn eq(&self, other: &Multiboot2BasicHeader) -> bool
fn eq(&self, other: &Multiboot2BasicHeader) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for Multiboot2BasicHeader
impl PartialOrd for Multiboot2BasicHeader
source§fn partial_cmp(&self, other: &Multiboot2BasicHeader) -> Option<Ordering>
fn partial_cmp(&self, other: &Multiboot2BasicHeader) -> 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 Multiboot2BasicHeader
impl Eq for Multiboot2BasicHeader
impl StructuralPartialEq for Multiboot2BasicHeader
Auto Trait Implementations§
impl Freeze for Multiboot2BasicHeader
impl RefUnwindSafe for Multiboot2BasicHeader
impl Send for Multiboot2BasicHeader
impl Sync for Multiboot2BasicHeader
impl Unpin for Multiboot2BasicHeader
impl UnwindSafe for Multiboot2BasicHeader
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