Struct x86_64::structures::gdt::SegmentSelector [−][src]
#[repr(transparent)]pub struct SegmentSelector(pub u16);
Expand description
Specifies which element to load into a segment from descriptor tables (i.e., is a index to LDT or GDT table with some additional flags).
See Intel 3a, Section 3.4.2 “Segment Selectors”
Tuple Fields
0: u16
Implementations
Creates a new SegmentSelector
Arguments
index
: index in GDT or LDT array (not the offset)rpl
: the requested privilege level
Returns the requested privilege level.
Set the privilege level for this Segment selector.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.