pub enum Alu {
Add,
Sub,
Mul,
Div,
Mod,
Shl,
Shr,
ShrI,
}
Expand description
Operations for computing arithmetic and logic.
Variants§
Add
Sub
Mul
Div
Mod
Shl
0x25
Logical shift left by number of bits.
§Stack Input
[lhs, rhs, num_bits]
§Stack Output
[lhs << rhs]
§Panics
- Number of bits is negative.
- Number of bits is greater than a Word.
Shr
0x26
Logical shift right by number of bits.
§Stack Input
[lhs, rhs]
§Stack Output
[lhs >> rhs]
§Panics
- Number of bits is negative.
- Number of bits is greater than a Word.
ShrI
Trait Implementations§
source§impl From<Alu> for Constraint
impl From<Alu> for Constraint
source§fn from(subgroup: Alu) -> Constraint
fn from(subgroup: Alu) -> Constraint
Converts to this type from the input type.
source§impl Ord for Alu
impl Ord for Alu
source§impl PartialOrd for Alu
impl PartialOrd for Alu
source§impl TryFromBytes for Alu
impl TryFromBytes for Alu
impl Copy for Alu
impl Eq for Alu
impl StructuralPartialEq for Alu
Auto Trait Implementations§
impl Freeze for Alu
impl RefUnwindSafe for Alu
impl Send for Alu
impl Sync for Alu
impl Unpin for Alu
impl UnwindSafe for Alu
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§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
)