pub enum UnOp {
Rl,
Rlc,
Rr,
Rrc,
Sla,
Sra,
Srl,
Swap,
}Expand description
An unary operation, that operates on a single register.
Variants§
Rl
Rotate left (with carry).
Rlc
Rotate left (carryless).
Rr
Rotate right (with carry).
Rrc
Rotate right (carryless).
Sla
Shift left arithmetic.
Sra
Shift right arithmetic.
Srl
Shift right logical.
Swap
Swap the high and low 4-bit chunks.
Trait Implementations§
impl Copy for UnOp
Auto Trait Implementations§
impl Freeze for UnOp
impl RefUnwindSafe for UnOp
impl Send for UnOp
impl Sync for UnOp
impl Unpin for UnOp
impl UnsafeUnpin for UnOp
impl UnwindSafe for UnOp
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