pub struct MBOOTINFO {
__private_field: (),
}
Expand description
reference to the multiboot info blob provided by the bootloader. This reference should be acquired via the get_mb_info() function, otherwise MUST manually call the check() function before using.
note that the lazylazy_static is necessary here, because the mb_info_pm_addr and mb_magic values are only initialized at runtime (in startup code), hence we can’t define mbinfo slice as constant during compile or linking time. lalazy_static initialize the static constants the first time they are accessed.
Fields§
§__private_field: ()
Methods from Deref<Target = &'static MultibootInfo>§
fn get_flags(&self) -> MultibootInfoFlags
pub unsafe fn get_mem(&self) -> Option<MultibootInfoMem>
pub unsafe fn get_mmap(&self) -> Option<MultibootInfoMmap>
Trait Implementations§
Source§impl Deref for MBOOTINFO
impl Deref for MBOOTINFO
Source§type Target = &'static MultibootInfo
type Target = &'static MultibootInfo
The resulting type after dereferencing.
Source§fn deref(&self) -> &&'static MultibootInfo
fn deref(&self) -> &&'static MultibootInfo
Dereferences the value.
impl LazyStatic for MBOOTINFO
Auto Trait Implementations§
impl Freeze for MBOOTINFO
impl RefUnwindSafe for MBOOTINFO
impl Send for MBOOTINFO
impl Sync for MBOOTINFO
impl Unpin for MBOOTINFO
impl UnwindSafe for MBOOTINFO
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