#[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
sourceimpl<const N: usize> InformationRequestHeaderTag<N>
impl<const N: usize> InformationRequestHeaderTag<N>
sourcepub fn new(
flags: HeaderTagFlag,
requests: [MbiTagType; N],
size: Option<u32>
) -> Self
pub fn new(
flags: HeaderTagFlag,
requests: [MbiTagType; 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) -> [MbiTagType; N]
pub const fn requests(&self) -> [MbiTagType; 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 fn req_iter(&self) -> InformationRequestHeaderTagIter<'_>ⓘNotable traits for InformationRequestHeaderTagIter<'a>impl<'a> Iterator for InformationRequestHeaderTagIter<'a> type Item = &'a MbiTagType;
pub fn req_iter(&self) -> InformationRequestHeaderTagIter<'_>ⓘNotable traits for InformationRequestHeaderTagIter<'a>impl<'a> Iterator for InformationRequestHeaderTagIter<'a> type Item = &'a MbiTagType;
Returns an InformationRequestHeaderTagIter.
Trait Implementations
sourceimpl<const N: usize> Clone for InformationRequestHeaderTag<N>
impl<const N: usize> Clone for InformationRequestHeaderTag<N>
sourcefn clone(&self) -> InformationRequestHeaderTag<N>
fn clone(&self) -> InformationRequestHeaderTag<N>
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<const N: usize> Debug for InformationRequestHeaderTag<N>
impl<const N: usize> Debug for InformationRequestHeaderTag<N>
impl<const N: usize> Copy for InformationRequestHeaderTag<N>
Auto Trait Implementations
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
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)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more