pub enum HeaderTagFlag {
Required,
Optional,
Custom(u16),
}Expand description
Flags of a Multiboot2 header tag.
These flags tell whether a tag is required or optional for the bootloader.
This is a higher level abstraction for HeaderTagFlagRaw.
Variants§
Required
The bootloader must provide this tag. If this is not possible, the bootloader will fail to load the kernel.
Optional
The bootloader should provide the tag if possible.
Custom(u16)
Value without a specified semantic in the specification.
Implementations§
Source§impl HeaderTagFlag
impl HeaderTagFlag
Trait Implementations§
Source§impl Clone for HeaderTagFlag
impl Clone for HeaderTagFlag
Source§fn clone(&self) -> HeaderTagFlag
fn clone(&self) -> HeaderTagFlag
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HeaderTagFlag
Source§impl Debug for HeaderTagFlag
impl Debug for HeaderTagFlag
Source§impl Display for HeaderTagFlag
impl Display for HeaderTagFlag
impl Eq for HeaderTagFlag
Source§impl From<HeaderTagFlag> for u16
impl From<HeaderTagFlag> for u16
Source§fn from(val: HeaderTagFlag) -> Self
fn from(val: HeaderTagFlag) -> Self
Converts to this type from the input type.
Source§impl From<HeaderTagFlag> for HeaderTagFlagRaw
impl From<HeaderTagFlag> for HeaderTagFlagRaw
Source§fn from(val: HeaderTagFlag) -> Self
fn from(val: HeaderTagFlag) -> Self
Converts to this type from the input type.
Source§impl From<HeaderTagFlagRaw> for HeaderTagFlag
impl From<HeaderTagFlagRaw> for HeaderTagFlag
Source§fn from(raw: HeaderTagFlagRaw) -> Self
fn from(raw: HeaderTagFlagRaw) -> Self
Converts to this type from the input type.
Source§impl From<u16> for HeaderTagFlag
impl From<u16> for HeaderTagFlag
Source§impl Hash for HeaderTagFlag
impl Hash for HeaderTagFlag
Source§impl Ord for HeaderTagFlag
impl Ord for HeaderTagFlag
Source§fn cmp(&self, other: &HeaderTagFlag) -> Ordering
fn cmp(&self, other: &HeaderTagFlag) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for HeaderTagFlag
impl PartialEq for HeaderTagFlag
Source§impl PartialEq<HeaderTagFlag> for HeaderTagFlagRaw
impl PartialEq<HeaderTagFlag> for HeaderTagFlagRaw
Source§impl PartialEq<HeaderTagFlag> for u16
impl PartialEq<HeaderTagFlag> for u16
Source§impl PartialEq<HeaderTagFlagRaw> for HeaderTagFlag
impl PartialEq<HeaderTagFlagRaw> for HeaderTagFlag
Source§impl PartialEq<u16> for HeaderTagFlag
impl PartialEq<u16> for HeaderTagFlag
Source§impl PartialOrd for HeaderTagFlag
impl PartialOrd for HeaderTagFlag
impl StructuralPartialEq for HeaderTagFlag
Auto Trait Implementations§
impl Freeze for HeaderTagFlag
impl RefUnwindSafe for HeaderTagFlag
impl Send for HeaderTagFlag
impl Sync for HeaderTagFlag
impl Unpin for HeaderTagFlag
impl UnsafeUnpin for HeaderTagFlag
impl UnwindSafe for HeaderTagFlag
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