Struct multiboot2_header::InformationRequestHeaderTag [−][src]
#[repr(C, packed(8))]pub struct InformationRequestHeaderTag<const N: usize> { /* fields omitted */ }Expand description
Specifies what specific tag types the bootloader should provide inside the mbi.
Implementations
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.
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().
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.
pub 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;
Notable traits for InformationRequestHeaderTagIter<'a>
impl<'a> Iterator for InformationRequestHeaderTagIter<'a> type Item = &'a MbiTagType;Returns an InformationRequestHeaderTagIter.
Trait Implementations
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
Mutably borrows from an owned value. Read more