#[repr(u8)]pub enum Offset {
None,
Bit8(Immediate8),
Bit32(Immediate32),
}
Expand description
Variants§
Implementations§
Source§impl Offset
impl Offset
Sourcepub const fn as_sign_extended_imm32(self) -> Immediate32
pub const fn as_sign_extended_imm32(self) -> Immediate32
Converts the offset to a 32-bit signed immediate value.
§Returns
0
if offset isNone
.Immediate32::from_imm8_sign_extended(offset)
if offset isBit8
.offset
if offset isBit32
.
Trait Implementations§
impl Copy for Offset
impl Eq for Offset
impl StructuralPartialEq for Offset
Auto Trait Implementations§
impl Freeze for Offset
impl RefUnwindSafe for Offset
impl Send for Offset
impl Sync for Offset
impl Unpin for Offset
impl UnwindSafe for Offset
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