#[repr(C, packed(1))]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§
Source§impl<T> DescriptorTablePointer<T>
impl<T> DescriptorTablePointer<T>
Trait Implementations§
Source§impl<T> Debug for DescriptorTablePointer<T>
impl<T> Debug for DescriptorTablePointer<T>
Source§impl<T> Default for DescriptorTablePointer<T>
impl<T> Default for DescriptorTablePointer<T>
Source§fn default() -> DescriptorTablePointer<T>
fn default() -> DescriptorTablePointer<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<Entry> Freeze for DescriptorTablePointer<Entry>
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§
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