#[repr(C)]pub struct InformationRequestHeaderTag<const N: usize> { /* private fields */ }Expand description
Specifies what specific tag types the bootloader should provide inside the mbi.
Implementations§
source§impl<const N: usize> InformationRequestHeaderTag<N>
impl<const N: usize> InformationRequestHeaderTag<N>
sourcepub fn new(
flags: HeaderTagFlag,
requests: [MbiTagTypeId; N],
size: Option<u32>
) -> Self
pub fn new( flags: HeaderTagFlag, requests: [MbiTagTypeId; N], size: Option<u32> ) -> Self
Creates a new object. The size parameter is the value of the size property.
It doesn’t have to match with N necessarily, because during compile time we
can’t know the size of the tag in all runtime situations.
pub const fn typ(&self) -> HeaderTagType
pub const fn flags(&self) -> HeaderTagFlag
pub const fn size(&self) -> u32
sourcepub const fn requests(&self) -> [MbiTagTypeId; N]
pub const fn requests(&self) -> [MbiTagTypeId; N]
Returns the requests as array. Only works if the number of requests
is known at compile time. For safety and correctness during runtime,
you should use req_iter().
sourcepub const fn dynamic_requests_size(&self) -> u32
pub const fn dynamic_requests_size(&self) -> u32
Returns the number of MbiTagType-requests derived
from the size-property. This method is useful
because this struct uses a const generic, but during runtime
we don’t know the value in almost any case.
sourcepub const fn req_iter(&self) -> InformationRequestHeaderTagIter<'_> ⓘ
pub const fn req_iter(&self) -> InformationRequestHeaderTagIter<'_> ⓘ
Returns an InformationRequestHeaderTagIter.
Trait Implementations§
source§impl<const N: usize> Clone for InformationRequestHeaderTag<N>
impl<const N: usize> Clone for InformationRequestHeaderTag<N>
source§fn clone(&self) -> InformationRequestHeaderTag<N>
fn clone(&self) -> InformationRequestHeaderTag<N>
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<const N: usize> Debug for InformationRequestHeaderTag<N>
impl<const N: usize> Debug for InformationRequestHeaderTag<N>
source§impl<const N: usize> Hash for InformationRequestHeaderTag<N>
impl<const N: usize> Hash for InformationRequestHeaderTag<N>
source§impl<const N: usize> Ord for InformationRequestHeaderTag<N>
impl<const N: usize> Ord for InformationRequestHeaderTag<N>
source§fn cmp(&self, other: &InformationRequestHeaderTag<N>) -> Ordering
fn cmp(&self, other: &InformationRequestHeaderTag<N>) -> 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<const N: usize> PartialEq for InformationRequestHeaderTag<N>
impl<const N: usize> PartialEq for InformationRequestHeaderTag<N>
source§fn eq(&self, other: &InformationRequestHeaderTag<N>) -> bool
fn eq(&self, other: &InformationRequestHeaderTag<N>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<const N: usize> PartialOrd for InformationRequestHeaderTag<N>
impl<const N: usize> PartialOrd for InformationRequestHeaderTag<N>
source§fn partial_cmp(
&self,
other: &InformationRequestHeaderTag<N>
) -> Option<Ordering>
fn partial_cmp( &self, other: &InformationRequestHeaderTag<N> ) -> 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<const N: usize> Copy for InformationRequestHeaderTag<N>
impl<const N: usize> Eq for InformationRequestHeaderTag<N>
impl<const N: usize> StructuralPartialEq for InformationRequestHeaderTag<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for InformationRequestHeaderTag<N>
impl<const N: usize> RefUnwindSafe for InformationRequestHeaderTag<N>
impl<const N: usize> Send for InformationRequestHeaderTag<N>
impl<const N: usize> Sync for InformationRequestHeaderTag<N>
impl<const N: usize> Unpin for InformationRequestHeaderTag<N>
impl<const N: usize> UnwindSafe for InformationRequestHeaderTag<N>
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