pub enum YulEVMBuiltIn {
Show 74 variants
Stop(stop),
Add(add),
Sub(sub),
Mul(mul),
Div(div),
Sdiv(sdiv),
Mod(Mod),
Smod(smod),
Exp(exp),
Not(not),
Lt(lt),
Gt(gt),
Slt(slt),
Sgt(sgt),
Eq(eq),
Iszero(iszero),
And(and),
Or(or),
Xor(xor),
Byte(byte),
Shl(shl),
Shr(shr),
Sar(sar),
Addmod(addmod),
Mulmod(mulmod),
Signextend(signextend),
Keccak256(keccak256),
Pop(pop),
Mload(mload),
Mstore(mstore),
Mstore8(mstore8),
Sload(sload),
Sstore(sstore),
Msize(msize),
Gas(gas),
Address(address),
Balance(balance),
Selfbalance(selfbalance),
Caller(caller),
Callvalue(callvalue),
Calldataload(calldataload),
Calldatasize(calldatasize),
Calldatacopy(calldatacopy),
Extcodesize(extcodesize),
Extcodecopy(extcodecopy),
Returndatasize(returndatasize),
Returndatacopy(returndatacopy),
Extcodehash(extcodehash),
Create(create),
Create2(create2),
Call(call),
Callcode(callcode),
Delegatecall(delegatecall),
Staticcall(staticcall),
Return(Return),
Revert(revert),
Selfdestruct(selfdestruct),
Invalid(invalid),
Log0(log0),
Log1(log1),
Log2(log2),
Log3(log3),
Log4(log4),
Chainid(chainid),
Origin(origin),
Gasprice(gasprice),
Blockhash(blockhash),
Coinbase(coinbase),
Timestamp(timestamp),
Number(number),
Difficulty(difficulty),
Prevrandao(prevrandao),
Gaslimit(gaslimit),
Basefee(basefee),
}
Expand description
Representation of an EVM builtin opcode.
Solidity Reference: https://docs.soliditylang.org/en/latest/grammar.html#a4.SolidityLexer.YulEVMBuiltin
Variants§
Stop(stop)
Add(add)
Sub(sub)
Mul(mul)
Div(div)
Sdiv(sdiv)
Mod(Mod)
Smod(smod)
Exp(exp)
Not(not)
Lt(lt)
Gt(gt)
Slt(slt)
Sgt(sgt)
Eq(eq)
Iszero(iszero)
And(and)
Or(or)
Xor(xor)
Byte(byte)
Shl(shl)
Shr(shr)
Sar(sar)
Addmod(addmod)
Mulmod(mulmod)
Signextend(signextend)
Keccak256(keccak256)
Pop(pop)
Mload(mload)
Mstore(mstore)
Mstore8(mstore8)
Sload(sload)
Sstore(sstore)
Msize(msize)
Gas(gas)
Address(address)
Balance(balance)
Selfbalance(selfbalance)
Caller(caller)
Callvalue(callvalue)
Calldataload(calldataload)
Calldatasize(calldatasize)
Calldatacopy(calldatacopy)
Extcodesize(extcodesize)
Extcodecopy(extcodecopy)
Returndatasize(returndatasize)
Returndatacopy(returndatacopy)
Extcodehash(extcodehash)
Create(create)
Create2(create2)
Call(call)
Callcode(callcode)
Delegatecall(delegatecall)
Staticcall(staticcall)
Return(Return)
Revert(revert)
Selfdestruct(selfdestruct)
Invalid(invalid)
Log0(log0)
Log1(log1)
Log2(log2)
Log3(log3)
Log4(log4)
Chainid(chainid)
Origin(origin)
Gasprice(gasprice)
Blockhash(blockhash)
Coinbase(coinbase)
Timestamp(timestamp)
Number(number)
Difficulty(difficulty)
Prevrandao(prevrandao)
Gaslimit(gaslimit)
Basefee(basefee)
Trait Implementations§
Source§impl Clone for YulEVMBuiltIn
impl Clone for YulEVMBuiltIn
Source§fn clone(&self) -> YulEVMBuiltIn
fn clone(&self) -> YulEVMBuiltIn
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for YulEVMBuiltIn
impl Debug for YulEVMBuiltIn
Source§impl Parse for YulEVMBuiltIn
impl Parse for YulEVMBuiltIn
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl Spanned for YulEVMBuiltIn
impl Spanned for YulEVMBuiltIn
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.Auto Trait Implementations§
impl Freeze for YulEVMBuiltIn
impl RefUnwindSafe for YulEVMBuiltIn
impl !Send for YulEVMBuiltIn
impl !Sync for YulEVMBuiltIn
impl Unpin for YulEVMBuiltIn
impl UnwindSafe for YulEVMBuiltIn
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