Enum fuel_asm::OpcodeRepr
source · [−]#[repr(u8)]
#[non_exhaustive]
pub enum OpcodeRepr {
Show 256 variants
RESERV00,
RESERV01,
RESERV02,
RESERV03,
RESERV04,
RESERV05,
RESERV06,
RESERV07,
RESERV08,
RESERV09,
RESERV0A,
RESERV0B,
RESERV0C,
RESERV0D,
RESERV0E,
RESERV0F,
ADD,
AND,
DIV,
EQ,
EXP,
GT,
LT,
MLOG,
MROO,
MOD,
MOVE,
MUL,
NOT,
OR,
SLL,
SRL,
SUB,
XOR,
RESERV22,
RESERV23,
RET,
RETD,
ALOC,
MCL,
MCP,
MEQ,
BHSH,
BHEI,
BURN,
CALL,
CCP,
CROO,
CSIZ,
CB,
LDC,
LOG,
LOGD,
MINT,
RVRT,
RESERV37,
SRW,
SRWQ,
SWW,
SWWQ,
TR,
TRO,
ECR,
K256,
S256,
TIME,
RESERV42,
RESERV43,
RESERV44,
RESERV45,
RESERV46,
NOOP,
FLAG,
BAL,
JMP,
JNE,
SMO,
RESERV4D,
RESERV4E,
RESERV4F,
ADDI,
ANDI,
DIVI,
EXPI,
MODI,
MULI,
ORI,
SLLI,
SRLI,
SUBI,
XORI,
JNEI,
LB,
LW,
SB,
SW,
MCPI,
GTF,
RESERV62,
RESERV63,
RESERV64,
RESERV65,
RESERV66,
RESERV67,
RESERV68,
RESERV69,
RESERV6A,
RESERV6B,
RESERV6C,
RESERV6D,
RESERV6E,
RESERV6F,
MCLI,
GM,
MOVI,
JNZI,
RESERV74,
RESERV75,
RESERV76,
RESERV77,
RESERV78,
RESERV79,
RESERV7A,
RESERV7B,
RESERV7C,
RESERV7D,
RESERV7E,
RESERV7F,
RESERV80,
RESERV81,
RESERV82,
RESERV83,
RESERV84,
RESERV85,
RESERV86,
RESERV87,
RESERV88,
RESERV89,
RESERV8A,
RESERV8B,
RESERV8C,
RESERV8D,
RESERV8E,
RESERV8F,
JI,
CFEI,
CFSI,
RESERV93,
RESERV94,
RESERV95,
RESERV96,
RESERV97,
RESERV98,
RESERV99,
RESERV9A,
RESERV9B,
RESERV9C,
RESERV9D,
RESERV9E,
RESERV9F,
RESERVA0,
RESERVA1,
RESERVA2,
RESERVA3,
RESERVA4,
RESERVA5,
RESERVA6,
RESERVA7,
RESERVA8,
RESERVA9,
RESERVAA,
RESERVAB,
RESERVAC,
RESERVAD,
RESERVAE,
RESERVAF,
RESERVB0,
RESERVB1,
RESERVB2,
RESERVB3,
RESERVB4,
RESERVB5,
RESERVB6,
RESERVB7,
RESERVB8,
RESERVB9,
RESERVBA,
RESERVBB,
RESERVBC,
RESERVBD,
RESERVBE,
RESERVBF,
RESERVC0,
RESERVC1,
RESERVC2,
RESERVC3,
RESERVC4,
RESERVC5,
RESERVC6,
RESERVC7,
RESERVC8,
RESERVC9,
RESERVCA,
RESERVCB,
RESERVCC,
RESERVCD,
RESERVCE,
RESERVCF,
RESERVD0,
RESERVD1,
RESERVD2,
RESERVD3,
RESERVD4,
RESERVD5,
RESERVD6,
RESERVD7,
RESERVD8,
RESERVD9,
RESERVDA,
RESERVDB,
RESERVDC,
RESERVDD,
RESERVDE,
RESERVDF,
RESERVE0,
RESERVE1,
RESERVE2,
RESERVE3,
RESERVE4,
RESERVE5,
RESERVE6,
RESERVE7,
RESERVE8,
RESERVE9,
RESERVEA,
RESERVEB,
RESERVEC,
RESERVED,
RESERVEE,
RESERVEF,
RESERVF0,
RESERVF1,
RESERVF2,
RESERVF3,
RESERVF4,
RESERVF5,
RESERVF6,
RESERVF7,
RESERVF8,
RESERVF9,
RESERVFA,
RESERVFB,
RESERVFC,
RESERVFD,
RESERVFE,
RESERVFF,
}
Expand description
Byte representation of an opcode
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
RESERV00
RESERV00
RESERV01
RESERV01
RESERV02
RESERV02
RESERV03
RESERV03
RESERV04
RESERV04
RESERV05
RESERV05
RESERV06
RESERV06
RESERV07
RESERV07
RESERV08
RESERV08
RESERV09
RESERV09
RESERV0A
RESERV0A
RESERV0B
RESERV0B
RESERV0C
RESERV0C
RESERV0D
RESERV0D
RESERV0E
RESERV0E
RESERV0F
RESERV0F
ADD
ADD
AND
AND
DIV
DIV
EQ
EQ
EXP
EXP
GT
GT
LT
LT
MLOG
MLOG
MROO
MROO
MOD
MOD
MOVE
MOVE
MUL
MUL
NOT
NOT
OR
OR
SLL
SLL
SRL
SRL
SUB
SUB
XOR
XOR
RESERV22
RESERV22
RESERV23
RESERV23
RET
RET
RETD
RETD
ALOC
ALOC
MCL
MCL
MCP
MCP
MEQ
MEQ
BHSH
BHSH
BHEI
BHEI
BURN
BURN
CALL
CALL
CCP
CCP
CROO
CROO
CSIZ
CSIZ
CB
CB
LDC
LDC
LOG
LOG
LOGD
LOGD
MINT
MINT
RVRT
RVRT
RESERV37
RESERV37
SRW
SRW
SRWQ
SRWQ
SWW
SWW
SWWQ
SWWQ
TR
TR
TRO
TRO
ECR
ECR
K256
K256
S256
S256
TIME
TIME
RESERV42
RESERV42
RESERV43
RESERV43
RESERV44
RESERV44
RESERV45
RESERV45
RESERV46
RESERV46
NOOP
NOOP
FLAG
FLAG
BAL
BAL
JMP
JMP
JNE
JNE
SMO
SMO
RESERV4D
RESERV4D
RESERV4E
RESERV4E
RESERV4F
RESERV4F
ADDI
ADDI
ANDI
ANDI
DIVI
DIVI
EXPI
EXPI
MODI
MODI
MULI
MULI
ORI
ORI
SLLI
SLLI
SRLI
SRLI
SUBI
SUBI
XORI
XORI
JNEI
JNEI
LB
LB
LW
LW
SB
SB
SW
SW
MCPI
MCPI
GTF
GTF
RESERV62
RESERV62
RESERV63
RESERV63
RESERV64
RESERV64
RESERV65
RESERV65
RESERV66
RESERV66
RESERV67
RESERV67
RESERV68
RESERV68
RESERV69
RESERV69
RESERV6A
RESERV6A
RESERV6B
RESERV6B
RESERV6C
RESERV6C
RESERV6D
RESERV6D
RESERV6E
RESERV6E
RESERV6F
RESERV6F
MCLI
MCLI
GM
GM
MOVI
MOVI
JNZI
JNZI
RESERV74
RESERV74
RESERV75
RESERV75
RESERV76
RESERV76
RESERV77
RESERV77
RESERV78
RESERV78
RESERV79
RESERV79
RESERV7A
RESERV7A
RESERV7B
RESERV7B
RESERV7C
RESERV7C
RESERV7D
RESERV7D
RESERV7E
RESERV7E
RESERV7F
RESERV7F
RESERV80
RESERV80
RESERV81
RESERV81
RESERV82
RESERV82
RESERV83
RESERV83
RESERV84
RESERV84
RESERV85
RESERV85
RESERV86
RESERV86
RESERV87
RESERV87
RESERV88
RESERV88
RESERV89
RESERV89
RESERV8A
RESERV8A
RESERV8B
RESERV8B
RESERV8C
RESERV8C
RESERV8D
RESERV8D
RESERV8E
RESERV8E
RESERV8F
RESERV8F
JI
JI
CFEI
CFEI
CFSI
CFSI
RESERV93
RESERV93
RESERV94
RESERV94
RESERV95
RESERV95
RESERV96
RESERV96
RESERV97
RESERV97
RESERV98
RESERV98
RESERV99
RESERV99
RESERV9A
RESERV9A
RESERV9B
RESERV9B
RESERV9C
RESERV9C
RESERV9D
RESERV9D
RESERV9E
RESERV9E
RESERV9F
RESERV9F
RESERVA0
RESERVA0
RESERVA1
RESERVA1
RESERVA2
RESERVA2
RESERVA3
RESERVA3
RESERVA4
RESERVA4
RESERVA5
RESERVA5
RESERVA6
RESERVA6
RESERVA7
RESERVA7
RESERVA8
RESERVA8
RESERVA9
RESERVA9
RESERVAA
RESERVAA
RESERVAB
RESERVAB
RESERVAC
RESERVAC
RESERVAD
RESERVAD
RESERVAE
RESERVAE
RESERVAF
RESERVAF
RESERVB0
RESERVB0
RESERVB1
RESERVB1
RESERVB2
RESERVB2
RESERVB3
RESERVB3
RESERVB4
RESERVB4
RESERVB5
RESERVB5
RESERVB6
RESERVB6
RESERVB7
RESERVB7
RESERVB8
RESERVB8
RESERVB9
RESERVB9
RESERVBA
RESERVBA
RESERVBB
RESERVBB
RESERVBC
RESERVBC
RESERVBD
RESERVBD
RESERVBE
RESERVBE
RESERVBF
RESERVBF
RESERVC0
RESERVC0
RESERVC1
RESERVC1
RESERVC2
RESERVC2
RESERVC3
RESERVC3
RESERVC4
RESERVC4
RESERVC5
RESERVC5
RESERVC6
RESERVC6
RESERVC7
RESERVC7
RESERVC8
RESERVC8
RESERVC9
RESERVC9
RESERVCA
RESERVCA
RESERVCB
RESERVCB
RESERVCC
RESERVCC
RESERVCD
RESERVCD
RESERVCE
RESERVCE
RESERVCF
RESERVCF
RESERVD0
RESERVD0
RESERVD1
RESERVD1
RESERVD2
RESERVD2
RESERVD3
RESERVD3
RESERVD4
RESERVD4
RESERVD5
RESERVD5
RESERVD6
RESERVD6
RESERVD7
RESERVD7
RESERVD8
RESERVD8
RESERVD9
RESERVD9
RESERVDA
RESERVDA
RESERVDB
RESERVDB
RESERVDC
RESERVDC
RESERVDD
RESERVDD
RESERVDE
RESERVDE
RESERVDF
RESERVDF
RESERVE0
RESERVE0
RESERVE1
RESERVE1
RESERVE2
RESERVE2
RESERVE3
RESERVE3
RESERVE4
RESERVE4
RESERVE5
RESERVE5
RESERVE6
RESERVE6
RESERVE7
RESERVE7
RESERVE8
RESERVE8
RESERVE9
RESERVE9
RESERVEA
RESERVEA
RESERVEB
RESERVEB
RESERVEC
RESERVEC
RESERVED
RESERVED
RESERVEE
RESERVEE
RESERVEF
RESERVEF
RESERVF0
RESERVF0
RESERVF1
RESERVF1
RESERVF2
RESERVF2
RESERVF3
RESERVF3
RESERVF4
RESERVF4
RESERVF5
RESERVF5
RESERVF6
RESERVF6
RESERVF7
RESERVF7
RESERVF8
RESERVF8
RESERVF9
RESERVF9
RESERVFA
RESERVFA
RESERVFB
RESERVFB
RESERVFC
RESERVFC
RESERVFD
RESERVFD
RESERVFE
RESERVFE
RESERVFF
RESERVFF
Implementations
sourceimpl OpcodeRepr
impl OpcodeRepr
sourcepub const fn is_predicate_allowed(&self) -> bool
pub const fn is_predicate_allowed(&self) -> bool
Check if the opcode representation is allowed for predicates
https://github.com/FuelLabs/fuel-specs/blob/master/specs/vm/main.md#predicate-verification https://github.com/FuelLabs/fuel-specs/blob/master/specs/vm/opcodes.md#contract-opcodes
sourceimpl OpcodeRepr
impl OpcodeRepr
Trait Implementations
sourceimpl<'arbitrary> Arbitrary<'arbitrary> for OpcodeRepr
impl<'arbitrary> Arbitrary<'arbitrary> for OpcodeRepr
sourcefn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of Self
from the given unstructured data. Read more
sourcefn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of Self
from the entirety of the given
unstructured data. Read more
sourceimpl Clone for OpcodeRepr
impl Clone for OpcodeRepr
sourcefn clone(&self) -> OpcodeRepr
fn clone(&self) -> OpcodeRepr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OpcodeRepr
impl Debug for OpcodeRepr
sourceimpl<'de> Deserialize<'de> for OpcodeRepr
impl<'de> Deserialize<'de> for OpcodeRepr
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<OpcodeRepr> for Word
impl From<OpcodeRepr> for Word
sourcefn from(i: OpcodeRepr) -> Word
fn from(i: OpcodeRepr) -> Word
Converts to this type from the input type.
sourceimpl From<OpcodeRepr> for u8
impl From<OpcodeRepr> for u8
sourcefn from(i: OpcodeRepr) -> u8
fn from(i: OpcodeRepr) -> u8
Converts to this type from the input type.
sourceimpl From<u64> for OpcodeRepr
impl From<u64> for OpcodeRepr
sourceimpl From<u8> for OpcodeRepr
impl From<u8> for OpcodeRepr
sourceimpl Hash for OpcodeRepr
impl Hash for OpcodeRepr
sourceimpl PartialEq<OpcodeRepr> for OpcodeRepr
impl PartialEq<OpcodeRepr> for OpcodeRepr
sourceimpl Serialize for OpcodeRepr
impl Serialize for OpcodeRepr
impl Copy for OpcodeRepr
impl Eq for OpcodeRepr
impl StructuralEq for OpcodeRepr
impl StructuralPartialEq for OpcodeRepr
Auto Trait Implementations
impl RefUnwindSafe for OpcodeRepr
impl Send for OpcodeRepr
impl Sync for OpcodeRepr
impl Unpin for OpcodeRepr
impl UnwindSafe for OpcodeRepr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more