#[repr(u8)]pub enum RegE {
Show 16 variants
E1 = 0,
E2 = 1,
E3 = 2,
E4 = 3,
E5 = 4,
E6 = 5,
E7 = 6,
E8 = 7,
EA = 8,
EB = 9,
EC = 10,
ED = 11,
EE = 12,
EF = 13,
EG = 14,
EH = 15,
}
Expand description
Registers storing field elements.
§zk-AluVM ABI standard
Totally, there are 16 registers, divided in two groups.
The first group, consisting of 8 registers, from E1
to E8
are used for storing local
variables. If a routine calls another routine or external library, it must assume that the
values in these registers may not be preserved.
The second group, consisting of another 8 registers, from EA
to EG
, is used for passing
arguments and reading the retuned data from the routine or external procedure calls.
Variants§
E1 = 0
E2 = 1
E3 = 2
E4 = 3
E5 = 4
E6 = 5
E7 = 6
E8 = 7
EA = 8
EB = 9
EC = 10
ED = 11
EE = 12
EF = 13
EG = 14
EH = 15
Implementations§
Trait Implementations§
Source§impl Ord for RegE
impl Ord for RegE
Source§impl PartialOrd for RegE
impl PartialOrd for RegE
impl Copy for RegE
impl Eq for RegE
impl StructuralPartialEq for RegE
Auto Trait Implementations§
impl Freeze for RegE
impl RefUnwindSafe for RegE
impl Send for RegE
impl Sync for RegE
impl Unpin for RegE
impl UnwindSafe for RegE
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.