#[repr(C, packed(2))]pub struct DescriptorTablePointer {
pub limit: u16,
pub base: VirtAddr,
}
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: VirtAddr
Pointer to the memory region containing the DT.
Trait Implementations§
Source§impl Clone for DescriptorTablePointer
impl Clone for DescriptorTablePointer
Source§fn clone(&self) -> DescriptorTablePointer
fn clone(&self) -> DescriptorTablePointer
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 moreSource§impl Debug for DescriptorTablePointer
impl Debug for DescriptorTablePointer
impl Copy for DescriptorTablePointer
Auto Trait Implementations§
impl Freeze for DescriptorTablePointer
impl RefUnwindSafe for DescriptorTablePointer
impl Send for DescriptorTablePointer
impl Sync for DescriptorTablePointer
impl Unpin for DescriptorTablePointer
impl UnwindSafe for DescriptorTablePointer
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