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 GDT index.

Returns the requested privilege level.

Set the privilege level for this Segment selector.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.