#[repr(transparent)]pub struct Flags(u32);
Tuple Fields§
§0: u32
Implementations§
Source§impl Flags
impl Flags
const MEMORY_BITS: usize = 1usize
const MEMORY_OFFSET: usize = 0usize
const BOOTDEV_BITS: usize = 1usize
const BOOTDEV_OFFSET: usize = 1usize
const CMDLINE_BITS: usize = 1usize
const CMDLINE_OFFSET: usize = 2usize
const MODS_BITS: usize = 1usize
const MODS_OFFSET: usize = 3usize
const AOUT_SYMS_BITS: usize = 1usize
const AOUT_SYMS_OFFSET: usize = 4usize
const ELF_SHDR_BITS: usize = 1usize
const ELF_SHDR_OFFSET: usize = 5usize
const MEMORY_MAP_BITS: usize = 1usize
const MEMORY_MAP_OFFSET: usize = 6usize
const DRIVE_INFO_BITS: usize = 1usize
const DRIVE_INFO_OFFSET: usize = 7usize
const CONFIG_TABLE_BITS: usize = 1usize
const CONFIG_TABLE_OFFSET: usize = 8usize
const BOOT_LOADER_NAME_BITS: usize = 1usize
const BOOT_LOADER_NAME_OFFSET: usize = 9usize
const APM_TABLE_BITS: usize = 1usize
const APM_TABLE_OFFSET: usize = 10usize
const VBE_BITS: usize = 1usize
const VBE_OFFSET: usize = 11usize
const FRAMEBUFFER_BITS: usize = 1usize
const FRAMEBUFFER_OFFSET: usize = 12usize
Sourcepub const fn with_memory_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_memory_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
Sourcepub const fn with_memory(self, value: bool) -> Self
pub const fn with_memory(self, value: bool) -> Self
Bits: 0..1
Sourcepub const fn set_memory(&mut self, value: bool)
pub const fn set_memory(&mut self, value: bool)
Bits: 0..1
Sourcepub const fn set_memory_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_memory_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 0..1
Sourcepub const fn with_bootdev_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_bootdev_checked(self, value: bool) -> Result<Self, ()>
Bits: 1..2
Sourcepub const fn with_bootdev(self, value: bool) -> Self
pub const fn with_bootdev(self, value: bool) -> Self
Bits: 1..2
Sourcepub const fn set_bootdev(&mut self, value: bool)
pub const fn set_bootdev(&mut self, value: bool)
Bits: 1..2
Sourcepub const fn set_bootdev_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_bootdev_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 1..2
Sourcepub const fn with_cmdline_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_cmdline_checked(self, value: bool) -> Result<Self, ()>
Bits: 2..3
Sourcepub const fn with_cmdline(self, value: bool) -> Self
pub const fn with_cmdline(self, value: bool) -> Self
Bits: 2..3
Sourcepub const fn set_cmdline(&mut self, value: bool)
pub const fn set_cmdline(&mut self, value: bool)
Bits: 2..3
Sourcepub const fn set_cmdline_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_cmdline_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 2..3
Sourcepub const fn with_mods_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_mods_checked(self, value: bool) -> Result<Self, ()>
Bits: 3..4
Sourcepub const fn set_mods_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_mods_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 3..4
Sourcepub const fn with_aout_syms_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_aout_syms_checked(self, value: bool) -> Result<Self, ()>
Bits: 4..5
Sourcepub const fn with_aout_syms(self, value: bool) -> Self
pub const fn with_aout_syms(self, value: bool) -> Self
Bits: 4..5
Sourcepub const fn set_aout_syms(&mut self, value: bool)
pub const fn set_aout_syms(&mut self, value: bool)
Bits: 4..5
Sourcepub const fn set_aout_syms_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_aout_syms_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 4..5
Sourcepub const fn with_elf_shdr_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_elf_shdr_checked(self, value: bool) -> Result<Self, ()>
Bits: 5..6
Sourcepub const fn with_elf_shdr(self, value: bool) -> Self
pub const fn with_elf_shdr(self, value: bool) -> Self
Bits: 5..6
Sourcepub const fn set_elf_shdr(&mut self, value: bool)
pub const fn set_elf_shdr(&mut self, value: bool)
Bits: 5..6
Sourcepub const fn set_elf_shdr_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_elf_shdr_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 5..6
Sourcepub const fn memory_map(&self) -> bool
pub const fn memory_map(&self) -> bool
Bits: 6..7
Sourcepub const fn with_memory_map_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_memory_map_checked(self, value: bool) -> Result<Self, ()>
Bits: 6..7
Sourcepub const fn with_memory_map(self, value: bool) -> Self
pub const fn with_memory_map(self, value: bool) -> Self
Bits: 6..7
Sourcepub const fn set_memory_map(&mut self, value: bool)
pub const fn set_memory_map(&mut self, value: bool)
Bits: 6..7
Sourcepub const fn set_memory_map_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_memory_map_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 6..7
Sourcepub const fn drive_info(&self) -> bool
pub const fn drive_info(&self) -> bool
Bits: 7..8
Sourcepub const fn with_drive_info_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_drive_info_checked(self, value: bool) -> Result<Self, ()>
Bits: 7..8
Sourcepub const fn with_drive_info(self, value: bool) -> Self
pub const fn with_drive_info(self, value: bool) -> Self
Bits: 7..8
Sourcepub const fn set_drive_info(&mut self, value: bool)
pub const fn set_drive_info(&mut self, value: bool)
Bits: 7..8
Sourcepub const fn set_drive_info_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_drive_info_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 7..8
Sourcepub const fn config_table(&self) -> bool
pub const fn config_table(&self) -> bool
Bits: 8..9
Sourcepub const fn with_config_table_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_config_table_checked(self, value: bool) -> Result<Self, ()>
Bits: 8..9
Sourcepub const fn with_config_table(self, value: bool) -> Self
pub const fn with_config_table(self, value: bool) -> Self
Bits: 8..9
Sourcepub const fn set_config_table(&mut self, value: bool)
pub const fn set_config_table(&mut self, value: bool)
Bits: 8..9
Sourcepub const fn set_config_table_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_config_table_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 8..9
Sourcepub const fn boot_loader_name(&self) -> bool
pub const fn boot_loader_name(&self) -> bool
Bits: 9..10
Sourcepub const fn with_boot_loader_name_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_boot_loader_name_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 9..10
Sourcepub const fn with_boot_loader_name(self, value: bool) -> Self
pub const fn with_boot_loader_name(self, value: bool) -> Self
Bits: 9..10
Sourcepub const fn set_boot_loader_name(&mut self, value: bool)
pub const fn set_boot_loader_name(&mut self, value: bool)
Bits: 9..10
Sourcepub const fn set_boot_loader_name_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_boot_loader_name_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 9..10
Sourcepub const fn with_apm_table_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_apm_table_checked(self, value: bool) -> Result<Self, ()>
Bits: 10..11
Sourcepub const fn with_apm_table(self, value: bool) -> Self
pub const fn with_apm_table(self, value: bool) -> Self
Bits: 10..11
Sourcepub const fn set_apm_table(&mut self, value: bool)
pub const fn set_apm_table(&mut self, value: bool)
Bits: 10..11
Sourcepub const fn set_apm_table_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_apm_table_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 10..11
Sourcepub const fn with_vbe_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_vbe_checked(self, value: bool) -> Result<Self, ()>
Bits: 11..12
Sourcepub const fn set_vbe_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_vbe_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 11..12
Sourcepub const fn framebuffer(&self) -> bool
pub const fn framebuffer(&self) -> bool
Bits: 12..13
Sourcepub const fn with_framebuffer_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_framebuffer_checked(self, value: bool) -> Result<Self, ()>
Bits: 12..13
Sourcepub const fn with_framebuffer(self, value: bool) -> Self
pub const fn with_framebuffer(self, value: bool) -> Self
Bits: 12..13
Sourcepub const fn set_framebuffer(&mut self, value: bool)
pub const fn set_framebuffer(&mut self, value: bool)
Bits: 12..13
Sourcepub const fn set_framebuffer_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_framebuffer_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 12..13
Trait Implementations§
impl Copy for Flags
Auto Trait Implementations§
impl Freeze for Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnwindSafe for Flags
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
§impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.