#[repr(u8)]pub enum Syscall {
Show 15 variants
Input = 1,
Output = 2,
PoseidonGL = 3,
Affine256 = 4,
EcAdd = 5,
EcDouble = 6,
KeccakF = 7,
Mod256 = 8,
Halt = 9,
Poseidon2GL = 10,
NativeHash = 11,
CommitPublic = 12,
InvertGL = 13,
SplitGLVec = 14,
MergeGL = 15,
}Expand description
We use repr(u8) to make sure the enum discriminant will fit into the
12 bits of the immediate field of the addi instruction,
Variants§
Input = 1
Output = 2
PoseidonGL = 3
Affine256 = 4
EcAdd = 5
EcDouble = 6
KeccakF = 7
Mod256 = 8
Halt = 9
Poseidon2GL = 10
NativeHash = 11
CommitPublic = 12
InvertGL = 13
SplitGLVec = 14
MergeGL = 15
Implementations§
Trait Implementations§
impl Copy for Syscall
impl Eq for Syscall
Source§impl Ord for Syscall
impl Ord for Syscall
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Syscall
impl PartialOrd for Syscall
impl StructuralPartialEq for Syscall
Auto Trait Implementations§
impl Freeze for Syscall
impl RefUnwindSafe for Syscall
impl Send for Syscall
impl Sync for Syscall
impl Unpin for Syscall
impl UnsafeUnpin for Syscall
impl UnwindSafe for Syscall
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