pub struct InstructionInput {
pub ra: Option<u64>,
pub rb: Option<u64>,
pub rc: Option<u64>,
pub immediate: Option<u64>,
pub carry: Option<CarryFlags>,
pub overflow: Option<OverflowFlags>,
}
Fields§
§ra: Option<u64>
§rb: Option<u64>
§rc: Option<u64>
§immediate: Option<u64>
§carry: Option<CarryFlags>
§overflow: Option<OverflowFlags>
Implementations§
Source§impl InstructionInput
impl InstructionInput
pub fn try_get_ra(self) -> Result<u64, MissingInstructionInput>
pub fn try_get_rb(self) -> Result<u64, MissingInstructionInput>
pub fn try_get_rc(self) -> Result<u64, MissingInstructionInput>
pub fn try_get_carry(self) -> Result<CarryFlags, MissingInstructionInput>
pub fn try_get_overflow(self) -> Result<OverflowFlags, MissingInstructionInput>
Source§impl InstructionInput
impl InstructionInput
pub fn try_get_immediate_u16(self) -> Result<u16, MissingInstructionInput>
pub fn try_get_immediate_s16(self) -> Result<i16, MissingInstructionInput>
Trait Implementations§
Source§impl Clone for InstructionInput
impl Clone for InstructionInput
Source§fn clone(&self) -> InstructionInput
fn clone(&self) -> InstructionInput
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 InstructionInput
impl Debug for InstructionInput
Source§impl Default for InstructionInput
impl Default for InstructionInput
Source§fn default() -> InstructionInput
fn default() -> InstructionInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstructionInput
impl<'de> Deserialize<'de> for InstructionInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for InstructionInput
impl Serialize for InstructionInput
impl Copy for InstructionInput
Auto Trait Implementations§
impl Freeze for InstructionInput
impl RefUnwindSafe for InstructionInput
impl Send for InstructionInput
impl Sync for InstructionInput
impl Unpin for InstructionInput
impl UnwindSafe for InstructionInput
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