pub struct SkipData { /* private fields */ }Expand description
Contextual data for the SKIP instruction
Implementations§
Source§impl SkipData
impl SkipData
Sourcepub fn with_register(
new_vx: Register,
new_vy: Register,
new_type: SkipType,
) -> SkipData
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 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
Sourcepub fn with_constant(
new_vx: Register,
new_nn: u8,
new_type: SkipType,
) -> SkipData
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 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
Sourcepub fn with_key(new_vx: Register, new_type: SkipType) -> SkipData
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 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 Freeze for SkipData
impl RefUnwindSafe for SkipData
impl Send for SkipData
impl Sync for SkipData
impl Unpin for SkipData
impl UnwindSafe for SkipData
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