Enum alure::instr::PutOp [−][src]
pub enum PutOp { ZeroA(RegA, Reg32), ZeroR(RegR, Reg32), ClA(RegA, Reg32), ClR(RegR, Reg32), PutA(RegA, Reg32, Value), PutR(RegR, Reg32, Value), PutIfA(RegA, Reg32, Value), PutIfR(RegR, Reg32, Value), }
Expand description
Instructions setting register values
Variants
Sets a
register value to zero
Sets r
register value to zero
Cleans a value of a
register (sets it to undefined state)
Cleans a value of r
register (sets it to undefined state)
Unconditionally assigns a value to a
register
Unconditionally assigns a value to r
register
Conditionally assigns a value to a
register if the register is in
uninitialized state
Conditionally assigns a value to r
register if the register is in
uninitialized state
Trait Implementations
impl Bytecode for PutOp
[src]
impl Bytecode for PutOp
[src]fn byte_count(&self) -> u16
[src]
fn byte_count(&self) -> u16
[src]Returns number of bytes which instruction and its argument occupies
fn instr_range() -> RangeInclusive<u8>
[src]
fn instr_range() -> RangeInclusive<u8>
[src]Returns range of instruction btecodes covered by a set of operations
fn instr_byte(&self) -> u8
[src]
fn instr_byte(&self) -> u8
[src]Returns byte representing instruction code (without its arguments)
fn write_args<W>(&self, writer: &mut W) -> Result<(), EncodeError> where
W: Write,
EncodeError: From<<W as Write>::Error>,
[src]
fn write_args<W>(&self, writer: &mut W) -> Result<(), EncodeError> where
W: Write,
EncodeError: From<<W as Write>::Error>,
[src]Writes instruction arguments as bytecode, omitting instruction code byte
fn read<R>(reader: &mut R) -> Result<Self, DecodeError> where
R: Read,
DecodeError: From<<R as Read>::Error>,
[src]
fn read<R>(reader: &mut R) -> Result<Self, DecodeError> where
R: Read,
DecodeError: From<<R as Read>::Error>,
[src]Reads the instruction from bytecode
fn write<W>(&self, writer: &mut W) -> Result<(), EncodeError> where
W: Write,
EncodeError: From<<W as Write>::Error>,
[src]
fn write<W>(&self, writer: &mut W) -> Result<(), EncodeError> where
W: Write,
EncodeError: From<<W as Write>::Error>,
[src]Writes the instruction as bytecode
impl InstructionSet for PutOp
[src]
impl InstructionSet for PutOp
[src]impl Eq for PutOp
[src]
impl StructuralEq for PutOp
[src]
impl StructuralPartialEq for PutOp
[src]
Auto Trait Implementations
impl RefUnwindSafe for PutOp
impl Send for PutOp
impl Sync for PutOp
impl Unpin for PutOp
impl UnwindSafe for PutOp
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more