Struct kernel_loader::multiboot::MultibootVideoMode
source · 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: MultibootVideoModeType
Preferred 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)