[][src]Struct ch8_isa::data::SkipData

pub struct SkipData { /* fields omitted */ }

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]

Constructs a new SkipData instance with a register-to-register comparison

Arguments

  • new_vx - The LHS of the comparison
  • new_vy - The RHS of the comparison
  • new_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]

Constructs a new SkipData instance with a register-to-constant comparison

Arguments

  • new_vx - The LHS of the comparison
  • new_nn - The RHS of the comparison
  • new_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 comparison
  • new_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

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]