RegisterAlias

Enum RegisterAlias 

Source
pub enum RegisterAlias {
Show 36 variants Zero, Ra, Sp, Gp, Tp, T0, T1, T2, Fp, S0, S1, A0, A1, A2, A3, A4, A5, A6, A7, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, T3, T4, T5, T6, Ip, NextIp, HeapPointer,
}
Expand description

This enum provides aliases for the registers. This is useful for debugging and for providing a more readable interface. It can be used to index the registers in the witness.

Variants§

§

Zero

§

Ra

Return address

§

Sp

Stack pointer

§

Gp

Global pointer

§

Tp

Thread pointer

§

T0

Temporary/alternate register

§

T1

Temporaries

§

T2

§

Fp

Frame pointer/saved register. This is the same register.

§

S0

§

S1

Saved registers

§

A0

Function arguments/results

§

A1

§

A2

§

A3

§

A4

§

A5

§

A6

§

A7

§

S2

§

S3

§

S4

§

S5

§

S6

§

S7

§

S8

§

S9

§

S10

§

S11

§

T3

§

T4

§

T5

§

T6

§

Ip

Current instruction pointer

§

NextIp

Next instruction pointer

§

HeapPointer

Trait Implementations§

Source§

impl<T: Clone> Index<RegisterAlias> for Registers<T>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: RegisterAlias) -> &Self::Output

Performs the indexing (container[index]) operation. Read more

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where 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>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V