#[repr(u8)]pub enum DefaultFunction {
Show 92 variants
AddInteger = 0,
SubtractInteger = 1,
MultiplyInteger = 2,
DivideInteger = 3,
QuotientInteger = 4,
RemainderInteger = 5,
ModInteger = 6,
EqualsInteger = 7,
LessThanInteger = 8,
LessThanEqualsInteger = 9,
AppendByteString = 10,
ConsByteString = 11,
SliceByteString = 12,
LengthOfByteString = 13,
IndexByteString = 14,
EqualsByteString = 15,
LessThanByteString = 16,
LessThanEqualsByteString = 17,
Sha2_256 = 18,
Sha3_256 = 19,
Blake2b_256 = 20,
Keccak_256 = 71,
Blake2b_224 = 72,
VerifyEd25519Signature = 21,
VerifyEcdsaSecp256k1Signature = 52,
VerifySchnorrSecp256k1Signature = 53,
AppendString = 22,
EqualsString = 23,
EncodeUtf8 = 24,
DecodeUtf8 = 25,
IfThenElse = 26,
ChooseUnit = 27,
Trace = 28,
FstPair = 29,
SndPair = 30,
ChooseList = 31,
MkCons = 32,
HeadList = 33,
TailList = 34,
NullList = 35,
ChooseData = 36,
ConstrData = 37,
MapData = 38,
ListData = 39,
IData = 40,
BData = 41,
UnConstrData = 42,
UnMapData = 43,
UnListData = 44,
UnIData = 45,
UnBData = 46,
EqualsData = 47,
SerialiseData = 51,
MkPairData = 48,
MkNilData = 49,
MkNilPairData = 50,
Bls12_381_G1_Add = 54,
Bls12_381_G1_Neg = 55,
Bls12_381_G1_ScalarMul = 56,
Bls12_381_G1_Equal = 57,
Bls12_381_G1_Compress = 58,
Bls12_381_G1_Uncompress = 59,
Bls12_381_G1_HashToGroup = 60,
Bls12_381_G2_Add = 61,
Bls12_381_G2_Neg = 62,
Bls12_381_G2_ScalarMul = 63,
Bls12_381_G2_Equal = 64,
Bls12_381_G2_Compress = 65,
Bls12_381_G2_Uncompress = 66,
Bls12_381_G2_HashToGroup = 67,
Bls12_381_MillerLoop = 68,
Bls12_381_MulMlResult = 69,
Bls12_381_FinalVerify = 70,
IntegerToByteString = 73,
ByteStringToInteger = 74,
AndByteString = 75,
OrByteString = 76,
XorByteString = 77,
ComplementByteString = 78,
ReadBit = 79,
WriteBits = 80,
ReplicateByte = 81,
ShiftByteString = 82,
RotateByteString = 83,
CountSetBits = 84,
FindFirstSetBit = 85,
Ripemd_160 = 86,
ExpModInteger = 87,
DropList = 88,
LengthOfArray = 89,
ListToArray = 90,
IndexArray = 91,
}Variants§
AddInteger = 0
SubtractInteger = 1
MultiplyInteger = 2
DivideInteger = 3
QuotientInteger = 4
RemainderInteger = 5
ModInteger = 6
EqualsInteger = 7
LessThanInteger = 8
LessThanEqualsInteger = 9
AppendByteString = 10
ConsByteString = 11
SliceByteString = 12
LengthOfByteString = 13
IndexByteString = 14
EqualsByteString = 15
LessThanByteString = 16
LessThanEqualsByteString = 17
Sha2_256 = 18
Sha3_256 = 19
Blake2b_256 = 20
Keccak_256 = 71
Blake2b_224 = 72
VerifyEd25519Signature = 21
VerifyEcdsaSecp256k1Signature = 52
VerifySchnorrSecp256k1Signature = 53
AppendString = 22
EqualsString = 23
EncodeUtf8 = 24
DecodeUtf8 = 25
IfThenElse = 26
ChooseUnit = 27
Trace = 28
FstPair = 29
SndPair = 30
ChooseList = 31
MkCons = 32
HeadList = 33
TailList = 34
NullList = 35
ChooseData = 36
ConstrData = 37
MapData = 38
ListData = 39
IData = 40
BData = 41
UnConstrData = 42
UnMapData = 43
UnListData = 44
UnIData = 45
UnBData = 46
EqualsData = 47
SerialiseData = 51
MkPairData = 48
MkNilData = 49
MkNilPairData = 50
Bls12_381_G1_Add = 54
Bls12_381_G1_Neg = 55
Bls12_381_G1_ScalarMul = 56
Bls12_381_G1_Equal = 57
Bls12_381_G1_Compress = 58
Bls12_381_G1_Uncompress = 59
Bls12_381_G1_HashToGroup = 60
Bls12_381_G2_Add = 61
Bls12_381_G2_Neg = 62
Bls12_381_G2_ScalarMul = 63
Bls12_381_G2_Equal = 64
Bls12_381_G2_Compress = 65
Bls12_381_G2_Uncompress = 66
Bls12_381_G2_HashToGroup = 67
Bls12_381_MillerLoop = 68
Bls12_381_MulMlResult = 69
Bls12_381_FinalVerify = 70
IntegerToByteString = 73
ByteStringToInteger = 74
AndByteString = 75
OrByteString = 76
XorByteString = 77
ComplementByteString = 78
ReadBit = 79
WriteBits = 80
ReplicateByte = 81
ShiftByteString = 82
RotateByteString = 83
CountSetBits = 84
FindFirstSetBit = 85
Ripemd_160 = 86
ExpModInteger = 87
DropList = 88
LengthOfArray = 89
ListToArray = 90
IndexArray = 91
Implementations§
Source§impl DefaultFunction
impl DefaultFunction
pub fn force_count(&self) -> usize
pub fn arity(&self) -> usize
Sourcepub fn is_available_in(&self, plutus_version: PlutusVersion, pv: u32) -> bool
pub fn is_available_in(&self, plutus_version: PlutusVersion, pv: u32) -> bool
Check whether this builtin is available for a given Plutus ledger language and major protocol version.
Follows the Haskell’s builtinsIntroducedIn mapping from plutus-ledger-api:
https://github.com/IntersectMBO/plutus/blob/master/plutus-ledger-api/src/PlutusLedgerApi/Common/Versions.hs
Trait Implementations§
Source§impl Clone for DefaultFunction
impl Clone for DefaultFunction
Source§fn clone(&self) -> DefaultFunction
fn clone(&self) -> DefaultFunction
Returns a duplicate 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 DefaultFunction
impl Debug for DefaultFunction
Source§impl PartialEq for DefaultFunction
impl PartialEq for DefaultFunction
impl Copy for DefaultFunction
impl StructuralPartialEq for DefaultFunction
Auto Trait Implementations§
impl Freeze for DefaultFunction
impl RefUnwindSafe for DefaultFunction
impl Send for DefaultFunction
impl Sync for DefaultFunction
impl Unpin for DefaultFunction
impl UnsafeUnpin for DefaultFunction
impl UnwindSafe for DefaultFunction
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