Struct x86::dtables::DescriptorTablePointer
source · [−]#[repr(C, packed)]pub struct DescriptorTablePointer<Entry> {
pub limit: u16,
pub base: *const Entry,
}
Expand description
A struct describing a pointer to a descriptor table (GDT / IDT). This is in a format suitable for giving to ‘lgdt’ or ‘lidt’.
Fields
limit: u16
Size of the DT.
base: *const Entry
Pointer to the memory region containing the DT.
Implementations
sourceimpl<T> DescriptorTablePointer<T>
impl<T> DescriptorTablePointer<T>
Trait Implementations
sourceimpl<T> Debug for DescriptorTablePointer<T>
impl<T> Debug for DescriptorTablePointer<T>
sourceimpl<T> Default for DescriptorTablePointer<T>
impl<T> Default for DescriptorTablePointer<T>
sourcefn default() -> DescriptorTablePointer<T>
fn default() -> DescriptorTablePointer<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<Entry> RefUnwindSafe for DescriptorTablePointer<Entry> where
Entry: RefUnwindSafe,
impl<Entry> !Send for DescriptorTablePointer<Entry>
impl<Entry> !Sync for DescriptorTablePointer<Entry>
impl<Entry> Unpin for DescriptorTablePointer<Entry>
impl<Entry> UnwindSafe for DescriptorTablePointer<Entry> where
Entry: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more