Enum tartan_arch::x86_common::protection::SegmentRegister
source · 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 Selector
s.
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§
Auto Trait Implementations§
impl Freeze for SegmentRegister
impl RefUnwindSafe for SegmentRegister
impl Send for SegmentRegister
impl Sync for SegmentRegister
impl Unpin for SegmentRegister
impl UnwindSafe for SegmentRegister
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