pub enum SegmentRegister {
    Code,
    Data,
    Stack,
    Extra,
    ExtraF,
    ExtraG,
}
Available on x86 or x86-64 only.
Expand description

Standard segment registers (CS, DS, SS, etc.), which contain Selectors.

Variants§

§

Code

CS register, which controls instruction loading

§

Data

DS register, which controls the default segment for load/store instructions

§

Stack

SS segment register, which controls the location of the stack pointer and stack push and pop instructions.

§

Extra

ES segment register, which can be used as an additional data segment.

§

ExtraF

FS segment register, which can be used as an additional data segment.

§

ExtraG

GS segment register, which can be used as an additional data segment.

Implementations§

Retrieve the current value of this register

Update the register with the provided selector value.

Safety

This register fundamentally affects memory accesses and can have an impact on memory safety.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.