[−][src]Struct ch8_isa::data::SkipData
Contextual data for the SKIP
instruction
Methods
impl SkipData
[src]
pub fn with_register(
new_vx: Register,
new_vy: Register,
new_type: SkipType
) -> SkipData
[src]
new_vx: Register,
new_vy: Register,
new_type: SkipType
) -> SkipData
Constructs a new SkipData
instance with a
register-to-register comparison
Arguments
new_vx
- The LHS of the comparisonnew_vy
- The RHS of the comparisonnew_type
- The skip type of the comparison
Returns
A new SkipData
instance with the given properties
Panics
This method will panic if new_type
is a key-related variant
or if either register is the I
register
pub fn with_constant(
new_vx: Register,
new_nn: u8,
new_type: SkipType
) -> SkipData
[src]
new_vx: Register,
new_nn: u8,
new_type: SkipType
) -> SkipData
Constructs a new SkipData
instance with a
register-to-constant comparison
Arguments
new_vx
- The LHS of the comparisonnew_nn
- The RHS of the comparisonnew_type
- The skip type of the comparison
Returns
A new SkipData
instance with the given properties
Panics
This method will panic if new_type
is a key-related variant
or if new_vx
is the I
register
pub fn with_key(new_vx: Register, new_type: SkipType) -> SkipData
[src]
Constructs a new SkipData
instance with a
key comparison
Arguments
new_vx
- The LHS of the comparisonnew_type
- The skip type of the comparison
Returns
A new SkipData
instance with the given properties
Panics
This method will panic if new_type
is not a key-related variant
or if new_vx
is the I
register
Auto Trait Implementations
impl Send for SkipData
impl Sync for SkipData
impl Unpin for SkipData
impl UnwindSafe for SkipData
impl RefUnwindSafe for SkipData
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,