Struct pulley_interpreter::regs::XReg
source · pub struct XReg(/* private fields */);
Expand description
An x
register: integers.
Implementations§
source§impl XReg
impl XReg
sourcepub unsafe fn unchecked_new(index: u8) -> Self
pub unsafe fn unchecked_new(index: u8) -> Self
Construct a new register of this class without checking that
index
is a valid register index.
source§impl XReg
impl XReg
sourcepub const SPECIAL_RANGE: Range<u8> = _
pub const SPECIAL_RANGE: Range<u8> = _
The valid special register range.
sourcepub const SPILL_TMP_0: Self = _
pub const SPILL_TMP_0: Self = _
The special spilltmp0
scratch register.
sourcepub const SPILL_TMP_1: Self = _
pub const SPILL_TMP_1: Self = _
The special spilltmp1
scratch register.
sourcepub fn is_special(&self) -> bool
pub fn is_special(&self) -> bool
Is this x
register a special register?
Trait Implementations§
source§impl<'a> Arbitrary<'a> for XReg
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for XReg
Available on crate feature
arbitrary
only.source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl Ord for XReg
impl Ord for XReg
source§impl PartialOrd for XReg
impl PartialOrd for XReg
impl Copy for XReg
impl Eq for XReg
impl StructuralPartialEq for XReg
Auto Trait Implementations§
impl Freeze for XReg
impl RefUnwindSafe for XReg
impl Send for XReg
impl Sync for XReg
impl Unpin for XReg
impl UnwindSafe for XReg
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)