Struct rstubs::device::vga::ModeAttributes
source · #[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
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
const SUPPORTED_BITS: usize = 1usize
const SUPPORTED_OFFSET: usize = 1usize
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
const TTY_BITS: usize = 1usize
const TTY_OFFSET: usize = 2usize
const COLOR_BITS: usize = 1usize
const COLOR_OFFSET: usize = 3usize
sourceconst fn with_color(self, value: bool) -> Self
const fn with_color(self, value: bool) -> Self
Color mode (otherwise monochrome)
Bits: 3..4
const GRAPHICS_BITS: usize = 1usize
const GRAPHICS_OFFSET: usize = 4usize
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
const VGA_BITS: usize = 1usize
const VGA_OFFSET: usize = 5usize
const VGA_PAGED_BITS: usize = 1usize
const VGA_PAGED_OFFSET: usize = 6usize
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
const LFB_BITS: usize = 1usize
const LFB_OFFSET: usize = 7usize
Trait Implementations§
source§impl Clone for ModeAttributes
impl Clone for ModeAttributes
source§fn clone(&self) -> ModeAttributes
fn clone(&self) -> ModeAttributes
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Converts to this type from the input type.
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
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.