#[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
sourcepub const fn with_memory(self, value: bool) -> Self
pub const fn with_memory(self, value: bool) -> Self
Bits: 0..1
sourcepub fn set_memory(&mut self, value: bool)
pub fn set_memory(&mut self, value: bool)
Bits: 0..1
const BOOTDEV_BITS: usize = 1usize
const BOOTDEV_OFFSET: usize = 1usize
sourcepub const fn with_bootdev(self, value: bool) -> Self
pub const fn with_bootdev(self, value: bool) -> Self
Bits: 1..2
sourcepub fn set_bootdev(&mut self, value: bool)
pub fn set_bootdev(&mut self, value: bool)
Bits: 1..2
const CMDLINE_BITS: usize = 1usize
const CMDLINE_OFFSET: usize = 2usize
sourcepub const fn with_cmdline(self, value: bool) -> Self
pub const fn with_cmdline(self, value: bool) -> Self
Bits: 2..3
sourcepub fn set_cmdline(&mut self, value: bool)
pub fn set_cmdline(&mut self, value: bool)
Bits: 2..3
const MODS_BITS: usize = 1usize
const MODS_OFFSET: usize = 3usize
const AOUT_SYMS_BITS: usize = 1usize
const AOUT_SYMS_OFFSET: usize = 4usize
sourcepub const fn with_aout_syms(self, value: bool) -> Self
pub const fn with_aout_syms(self, value: bool) -> Self
Bits: 4..5
sourcepub fn set_aout_syms(&mut self, value: bool)
pub fn set_aout_syms(&mut self, value: bool)
Bits: 4..5
const ELF_SHDR_BITS: usize = 1usize
const ELF_SHDR_OFFSET: usize = 5usize
sourcepub const fn with_elf_shdr(self, value: bool) -> Self
pub const fn with_elf_shdr(self, value: bool) -> Self
Bits: 5..6
sourcepub fn set_elf_shdr(&mut self, value: bool)
pub fn set_elf_shdr(&mut self, value: bool)
Bits: 5..6
const MEMORY_MAP_BITS: usize = 1usize
const MEMORY_MAP_OFFSET: usize = 6usize
sourcepub const fn memory_map(&self) -> bool
pub const fn memory_map(&self) -> bool
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 fn set_memory_map(&mut self, value: bool)
pub fn set_memory_map(&mut self, value: bool)
Bits: 6..7
const DRIVE_INFO_BITS: usize = 1usize
const DRIVE_INFO_OFFSET: usize = 7usize
sourcepub const fn drive_info(&self) -> bool
pub const fn drive_info(&self) -> bool
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 fn set_drive_info(&mut self, value: bool)
pub fn set_drive_info(&mut self, value: bool)
Bits: 7..8
const CONFIG_TABLE_BITS: usize = 1usize
const CONFIG_TABLE_OFFSET: usize = 8usize
sourcepub const fn config_table(&self) -> bool
pub const fn config_table(&self) -> bool
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 fn set_config_table(&mut self, value: bool)
pub fn set_config_table(&mut self, value: bool)
Bits: 8..9
const BOOT_LOADER_NAME_BITS: usize = 1usize
const BOOT_LOADER_NAME_OFFSET: usize = 9usize
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(self, value: bool) -> Self
pub const fn with_boot_loader_name(self, value: bool) -> Self
Bits: 9..10
sourcepub fn set_boot_loader_name(&mut self, value: bool)
pub fn set_boot_loader_name(&mut self, value: bool)
Bits: 9..10
const APM_TABLE_BITS: usize = 1usize
const APM_TABLE_OFFSET: usize = 10usize
sourcepub const fn with_apm_table(self, value: bool) -> Self
pub const fn with_apm_table(self, value: bool) -> Self
Bits: 10..11
sourcepub fn set_apm_table(&mut self, value: bool)
pub fn set_apm_table(&mut self, value: bool)
Bits: 10..11
const VBE_BITS: usize = 1usize
const VBE_OFFSET: usize = 11usize
const FRAMEBUFFER_BITS: usize = 1usize
const FRAMEBUFFER_OFFSET: usize = 12usize
sourcepub const fn framebuffer(&self) -> bool
pub const fn framebuffer(&self) -> bool
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 fn set_framebuffer(&mut self, value: bool)
pub fn set_framebuffer(&mut self, value: bool)
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, 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.