#[repr(transparent)]struct ModeAttributes(u16);
Tuple Fields§
§0: u16
Implementations§
source§impl ModeAttributes
impl ModeAttributes
const TEXT_MODE_BITS: usize = 1usize
const TEXT_MODE_OFFSET: usize = 0usize
const SUPPORTED_BITS: usize = 1usize
const SUPPORTED_OFFSET: usize = 1usize
const TTY_BITS: usize = 1usize
const TTY_OFFSET: usize = 2usize
const COLOR_BITS: usize = 1usize
const COLOR_OFFSET: usize = 3usize
const GRAPHICS_BITS: usize = 1usize
const GRAPHICS_OFFSET: usize = 4usize
const VGA_BITS: usize = 1usize
const VGA_OFFSET: usize = 5usize
const VGA_PAGED_BITS: usize = 1usize
const VGA_PAGED_OFFSET: usize = 6usize
const LFB_BITS: usize = 1usize
const LFB_OFFSET: usize = 7usize
sourceconst fn with_text_mode_checked(self, value: bool) -> Result<Self, ()>
const fn with_text_mode_checked(self, value: bool) -> Result<Self, ()>
Text mode
Bits: 0..1
sourceconst fn with_text_mode(self, value: bool) -> Self
const fn with_text_mode(self, value: bool) -> Self
Text mode
Bits: 0..1
sourcefn set_text_mode(&mut self, value: bool)
fn set_text_mode(&mut self, value: bool)
Text mode
Bits: 0..1
sourcefn set_text_mode_checked(&mut self, value: bool) -> Result<(), ()>
fn set_text_mode_checked(&mut self, value: bool) -> Result<(), ()>
Text mode
Bits: 0..1
sourceconst fn with_supported_checked(self, value: bool) -> Result<Self, ()>
const fn with_supported_checked(self, value: bool) -> Result<Self, ()>
Mode supported by hardware configuration
Bits: 1..2
sourceconst fn with_supported(self, value: bool) -> Self
const fn with_supported(self, value: bool) -> Self
Mode supported by hardware configuration
Bits: 1..2
sourcefn set_supported(&mut self, value: bool)
fn set_supported(&mut self, value: bool)
Mode supported by hardware configuration
Bits: 1..2
sourcefn set_supported_checked(&mut self, value: bool) -> Result<(), ()>
fn set_supported_checked(&mut self, value: bool) -> Result<(), ()>
Mode supported by hardware configuration
Bits: 1..2
sourceconst fn with_tty_checked(self, value: bool) -> Result<Self, ()>
const fn with_tty_checked(self, value: bool) -> Result<Self, ()>
TTY Output functions supported by BIOS
Bits: 2..3
sourcefn set_tty_checked(&mut self, value: bool) -> Result<(), ()>
fn set_tty_checked(&mut self, value: bool) -> Result<(), ()>
TTY Output functions supported by BIOS
Bits: 2..3
sourceconst fn with_color_checked(self, value: bool) -> Result<Self, ()>
const fn with_color_checked(self, value: bool) -> Result<Self, ()>
Color mode (otherwise monochrome)
Bits: 3..4
sourceconst fn with_color(self, value: bool) -> Self
const fn with_color(self, value: bool) -> Self
Color mode (otherwise monochrome)
Bits: 3..4
sourcefn set_color_checked(&mut self, value: bool) -> Result<(), ()>
fn set_color_checked(&mut self, value: bool) -> Result<(), ()>
Color mode (otherwise monochrome)
Bits: 3..4
sourceconst fn with_graphics_checked(self, value: bool) -> Result<Self, ()>
const fn with_graphics_checked(self, value: bool) -> Result<Self, ()>
Graphic mode (otherwise text)
Bits: 4..5
sourceconst fn with_graphics(self, value: bool) -> Self
const fn with_graphics(self, value: bool) -> Self
Graphic mode (otherwise text)
Bits: 4..5
sourcefn set_graphics(&mut self, value: bool)
fn set_graphics(&mut self, value: bool)
Graphic mode (otherwise text)
Bits: 4..5
sourcefn set_graphics_checked(&mut self, value: bool) -> Result<(), ()>
fn set_graphics_checked(&mut self, value: bool) -> Result<(), ()>
Graphic mode (otherwise text)
Bits: 4..5
sourceconst fn with_vga_checked(self, value: bool) -> Result<Self, ()>
const fn with_vga_checked(self, value: bool) -> Result<Self, ()>
VGA compatible
Bits: 5..6
sourcefn set_vga_checked(&mut self, value: bool) -> Result<(), ()>
fn set_vga_checked(&mut self, value: bool) -> Result<(), ()>
VGA compatible
Bits: 5..6
sourceconst fn with_vga_paged_checked(self, value: bool) -> Result<Self, ()>
const fn with_vga_paged_checked(self, value: bool) -> Result<Self, ()>
VGA compatible windowed memory mode is available
Bits: 6..7
sourceconst fn with_vga_paged(self, value: bool) -> Self
const fn with_vga_paged(self, value: bool) -> Self
VGA compatible windowed memory mode is available
Bits: 6..7
sourcefn set_vga_paged(&mut self, value: bool)
fn set_vga_paged(&mut self, value: bool)
VGA compatible windowed memory mode is available
Bits: 6..7
sourcefn set_vga_paged_checked(&mut self, value: bool) -> Result<(), ()>
fn set_vga_paged_checked(&mut self, value: bool) -> Result<(), ()>
VGA compatible windowed memory mode is available
Bits: 6..7
sourceconst fn with_lfb_checked(self, value: bool) -> Result<Self, ()>
const fn with_lfb_checked(self, value: bool) -> Result<Self, ()>
Linear frame buffer mode is available
Bits: 7..8
sourcefn set_lfb_checked(&mut self, value: bool) -> Result<(), ()>
fn set_lfb_checked(&mut self, value: bool) -> Result<(), ()>
Linear frame buffer mode is available
Bits: 7..8
Trait Implementations§
source§impl Clone for ModeAttributes
impl Clone for ModeAttributes
source§fn clone(&self) -> ModeAttributes
fn clone(&self) -> ModeAttributes
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ModeAttributes
impl Debug for ModeAttributes
source§impl Default for ModeAttributes
impl Default for ModeAttributes
source§impl From<ModeAttributes> for u16
impl From<ModeAttributes> for u16
source§fn from(v: ModeAttributes) -> u16
fn from(v: ModeAttributes) -> u16
source§impl From<u16> for ModeAttributes
impl From<u16> for ModeAttributes
impl Copy for ModeAttributes
Auto Trait Implementations§
impl Freeze for ModeAttributes
impl RefUnwindSafe for ModeAttributes
impl Send for ModeAttributes
impl Sync for ModeAttributes
impl Unpin for ModeAttributes
impl UnwindSafe for ModeAttributes
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
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>,
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>
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)