#[repr(C)]pub struct EndHeaderTag { /* private fields */ }Expand description
Terminates a list of optional tags in a Multiboot2 header.
Implementations§
Source§impl EndHeaderTag
 
impl EndHeaderTag
Sourcepub const fn typ(&self) -> HeaderTagType
 
pub const fn typ(&self) -> HeaderTagType
Returns the HeaderTagType.
Sourcepub const fn flags(&self) -> HeaderTagFlag
 
pub const fn flags(&self) -> HeaderTagFlag
Returns the HeaderTagFlags.
Trait Implementations§
Source§impl Clone for EndHeaderTag
 
impl Clone for EndHeaderTag
Source§fn clone(&self) -> EndHeaderTag
 
fn clone(&self) -> EndHeaderTag
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 EndHeaderTag
 
impl Debug for EndHeaderTag
Source§impl Default for EndHeaderTag
 
impl Default for EndHeaderTag
Source§impl Hash for EndHeaderTag
 
impl Hash for EndHeaderTag
Source§impl MaybeDynSized for EndHeaderTag
 
impl MaybeDynSized for EndHeaderTag
Source§const BASE_SIZE: usize = 8usize
 
const BASE_SIZE: usize = 8usize
The true base size of the struct without any implicit or additional
padding. Note that 
size_of::<T>() isn’t sufficient, as for example
the type could have three u32 fields, which would add an implicit
u32 padding. However, this constant must always fulfill
BASE_SIZE >= size_of::<Self::Header>(). Read moreSource§type Header = HeaderTagHeader
 
type Header = HeaderTagHeader
The associated 
Header of this tag.Source§fn dst_len(_header: &Self::Header) -> Self::Metadata
 
fn dst_len(_header: &Self::Header) -> Self::Metadata
Returns the amount of items in the dynamically sized portion of the
DST. Note that this is not the amount of bytes. So if the dynamically
sized portion is 16 bytes in size and each element is 4 bytes big, then
this function must return 4. Read more
Source§fn payload(&self) -> &[u8]
 
fn payload(&self) -> &[u8]
Returns the payload, i.e., all memory that is not occupied by the
Header of the type.Source§impl Ord for EndHeaderTag
 
impl Ord for EndHeaderTag
Source§fn cmp(&self, other: &EndHeaderTag) -> Ordering
 
fn cmp(&self, other: &EndHeaderTag) -> 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 EndHeaderTag
 
impl PartialEq for EndHeaderTag
Source§impl PartialOrd for EndHeaderTag
 
impl PartialOrd for EndHeaderTag
Source§impl Tag for EndHeaderTag
 
impl Tag for EndHeaderTag
Source§const ID: HeaderTagType = HeaderTagType::End
 
const ID: HeaderTagType = HeaderTagType::End
The ID of this tag. This should be unique across all implementors. Read more
Source§type IDType = HeaderTagType
 
type IDType = HeaderTagType
The ID type that identifies the tag.
impl Copy for EndHeaderTag
impl Eq for EndHeaderTag
impl StructuralPartialEq for EndHeaderTag
Auto Trait Implementations§
impl Freeze for EndHeaderTag
impl RefUnwindSafe for EndHeaderTag
impl Send for EndHeaderTag
impl Sync for EndHeaderTag
impl Unpin for EndHeaderTag
impl UnwindSafe for EndHeaderTag
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