pub enum ImplicitRegisterExtend {
NoExtend = 0,
ZeroExtendToFullWidth = 1,
SignExtendToFullWidth = 2,
}Variants§
NoExtend = 0
The upper bits of the parent register are preserved (untouched).
§Example (x86-64)
Executing inc al only modifies the lowest 8 bits of rax. The upper 56 bits of rax remain
completely unchanged.
ZeroExtendToFullWidth = 1
The upper bits of the parent register are zeroed out.
§Example (x86-64)
Executing mov eax, 1 writes 1 to the lower 32 bits of rax, but implicitly clears the
upper 32 bits of rax to zero.
SignExtendToFullWidth = 2
The upper bits of the parent register are filled with the sign bit (MSB) of the value written.
Trait Implementations§
source§impl Clone for ImplicitRegisterExtend
impl Clone for ImplicitRegisterExtend
source§fn clone(&self) -> ImplicitRegisterExtend
fn clone(&self) -> ImplicitRegisterExtend
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ImplicitRegisterExtend
impl Debug for ImplicitRegisterExtend
source§impl From<BNImplicitRegisterExtend> for ImplicitRegisterExtend
impl From<BNImplicitRegisterExtend> for ImplicitRegisterExtend
source§fn from(value: BNImplicitRegisterExtend) -> Self
fn from(value: BNImplicitRegisterExtend) -> Self
Converts to this type from the input type.
source§impl From<ImplicitRegisterExtend> for BNImplicitRegisterExtend
impl From<ImplicitRegisterExtend> for BNImplicitRegisterExtend
source§fn from(value: ImplicitRegisterExtend) -> Self
fn from(value: ImplicitRegisterExtend) -> Self
Converts to this type from the input type.
source§impl Hash for ImplicitRegisterExtend
impl Hash for ImplicitRegisterExtend
source§impl PartialEq for ImplicitRegisterExtend
impl PartialEq for ImplicitRegisterExtend
impl Copy for ImplicitRegisterExtend
impl Eq for ImplicitRegisterExtend
impl StructuralPartialEq for ImplicitRegisterExtend
Auto Trait Implementations§
impl Freeze for ImplicitRegisterExtend
impl RefUnwindSafe for ImplicitRegisterExtend
impl Send for ImplicitRegisterExtend
impl Sync for ImplicitRegisterExtend
impl Unpin for ImplicitRegisterExtend
impl UnwindSafe for ImplicitRegisterExtend
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