#[repr(C, align(8))]pub struct BootInformationHeader { /* private fields */ }
Expand description
The basic header of a BootInformation
as sized Rust type.
Implementations§
Source§impl BootInformationHeader
impl BootInformationHeader
Sourcepub const fn total_size(&self) -> u32
pub const fn total_size(&self) -> u32
Returns the total size of the structure.
Trait Implementations§
Source§impl Clone for BootInformationHeader
impl Clone for BootInformationHeader
Source§fn clone(&self) -> BootInformationHeader
fn clone(&self) -> BootInformationHeader
Returns a duplicate 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 BootInformationHeader
impl Debug for BootInformationHeader
Source§impl Hash for BootInformationHeader
impl Hash for BootInformationHeader
Source§impl Header for BootInformationHeader
impl Header for BootInformationHeader
Source§fn payload_len(&self) -> usize
fn payload_len(&self) -> usize
Returns the length of the payload, i.e., the bytes that are additional
to the header. The value is measured in bytes.
Source§fn total_size(&self) -> usize
fn total_size(&self) -> usize
Returns the total size of the struct, thus the size of the header itself
plus
Header::payload_len
.Source§impl Ord for BootInformationHeader
impl Ord for BootInformationHeader
Source§fn cmp(&self, other: &BootInformationHeader) -> Ordering
fn cmp(&self, other: &BootInformationHeader) -> 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 BootInformationHeader
impl PartialEq for BootInformationHeader
Source§impl PartialOrd for BootInformationHeader
impl PartialOrd for BootInformationHeader
impl Copy for BootInformationHeader
impl Eq for BootInformationHeader
impl StructuralPartialEq for BootInformationHeader
Auto Trait Implementations§
impl Freeze for BootInformationHeader
impl RefUnwindSafe for BootInformationHeader
impl Send for BootInformationHeader
impl Sync for BootInformationHeader
impl Unpin for BootInformationHeader
impl UnwindSafe for BootInformationHeader
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