Struct x86_64::structures::gdt::SegmentSelector[][src]

#[repr(transparent)]
pub struct SegmentSelector(pub u16);

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"

Methods

impl SegmentSelector
[src]

Creates a new SegmentSelector

Arguments

  • index: index in GDT or LDT array (not the offset)
  • rpl: the requested privilege level

Returns the GDT index.

Returns the requested privilege level.

Trait Implementations

impl Clone for SegmentSelector
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for SegmentSelector
[src]

impl PartialEq for SegmentSelector
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for SegmentSelector
[src]

impl Debug for SegmentSelector
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations