Struct SkipData

Source
pub struct SkipData { /* private fields */ }
Expand description

Contextual data for the SKIP instruction

Implementations§

Source§

impl SkipData

Source

pub fn with_register( 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 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

Source

pub fn with_constant( 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 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

Source

pub fn with_key(new_vx: Register, new_type: SkipType) -> SkipData

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§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.