pub struct MultibootVideoMode {
pub mode_type: MultibootVideoModeType,
pub width: Option<NonZeroU32>,
pub height: Option<NonZeroU32>,
pub depth: Option<NonZeroU32>,
}Expand description
Multiboot kernel video mode specification.
Fields§
§mode_type: MultibootVideoModeTypePreferred video mode type (text or graphics).
width: Option<NonZeroU32>Width of the requested mode.
For text modes, this is in units of characters. For graphics modes, this is in units of pixels.
height: Option<NonZeroU32>Height of the requested mode.
For text modes, this is in units of characters. For graphics modes, this is in units of pixels.
depth: Option<NonZeroU32>Requested bits per pixel (only relevant in graphics modes).
Trait Implementations§
Source§impl Clone for MultibootVideoMode
impl Clone for MultibootVideoMode
Source§fn clone(&self) -> MultibootVideoMode
fn clone(&self) -> MultibootVideoMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MultibootVideoMode
impl RefUnwindSafe for MultibootVideoMode
impl Send for MultibootVideoMode
impl Sync for MultibootVideoMode
impl Unpin for MultibootVideoMode
impl UnwindSafe for MultibootVideoMode
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