#[repr(u16)]pub enum BuiltinFunction {
Show 93 variants
Len = 0,
Slice = 1,
Concat = 2,
ArrayNew = 3,
ArrayPush = 4,
MapNew = 5,
Get = 6,
Has = 7,
Set = 8,
Keys = 9,
BytesFromUtf8 = 10,
BytesToUtf8 = 11,
BytesToUtf8Lossy = 12,
BytesFromHex = 13,
BytesToHex = 14,
BytesFromBase64 = 15,
BytesToBase64 = 16,
BytesFromArrayU8 = 17,
BytesToArrayU8 = 18,
IoOpen = 19,
IoPopen = 20,
IoReadAll = 21,
IoReadLine = 22,
IoWrite = 23,
IoFlush = 24,
IoClose = 25,
IoExists = 26,
ReMatch = 27,
ReFind = 28,
ReReplace = 29,
ReSplit = 30,
ReCaptures = 31,
JsonEncode = 32,
JsonDecode = 33,
JitSetConfig = 34,
JitGetConfig = 35,
JitSetEnabled = 36,
JitGetEnabled = 37,
JitSetHotLoopThreshold = 38,
JitGetHotLoopThreshold = 39,
JitSetMaxTraceLen = 40,
JitGetMaxTraceLen = 41,
MathPi = 42,
MathTau = 43,
MathE = 44,
MathEpsilon = 45,
MathInf = 46,
MathNegInf = 47,
MathNaN = 48,
MathAbs = 49,
MathSqrt = 50,
MathCbrt = 51,
MathExp = 52,
MathExp2 = 53,
MathLn = 54,
MathLn1p = 55,
MathLog2 = 56,
MathLog10 = 57,
MathSin = 58,
MathCos = 59,
MathTan = 60,
MathAsin = 61,
MathAcos = 62,
MathAtan = 63,
MathSinh = 64,
MathCosh = 65,
MathTanh = 66,
MathFloor = 67,
MathCeil = 68,
MathRound = 69,
MathTrunc = 70,
MathFract = 71,
MathSignum = 72,
MathToDegrees = 73,
MathToRadians = 74,
MathIsNaN = 75,
MathIsInfinite = 76,
MathIsFinite = 77,
MathAtan2 = 78,
MathPowF = 79,
MathPowI = 80,
MathHypot = 81,
MathLog = 82,
MathMin = 83,
MathMax = 84,
MathCopySign = 85,
MathClamp = 86,
MathMulAdd = 87,
Count = 88,
FormatTemplate = 89,
ToString = 90,
TypeOf = 91,
Assert = 92,
}Variants§
Len = 0
Slice = 1
Concat = 2
ArrayNew = 3
ArrayPush = 4
MapNew = 5
Get = 6
Has = 7
Set = 8
Keys = 9
BytesFromUtf8 = 10
BytesToUtf8 = 11
BytesToUtf8Lossy = 12
BytesFromHex = 13
BytesToHex = 14
BytesFromBase64 = 15
BytesToBase64 = 16
BytesFromArrayU8 = 17
BytesToArrayU8 = 18
IoOpen = 19
IoPopen = 20
IoReadAll = 21
IoReadLine = 22
IoWrite = 23
IoFlush = 24
IoClose = 25
IoExists = 26
ReMatch = 27
ReFind = 28
ReReplace = 29
ReSplit = 30
ReCaptures = 31
JsonEncode = 32
JsonDecode = 33
JitSetConfig = 34
JitGetConfig = 35
JitSetEnabled = 36
JitGetEnabled = 37
JitSetHotLoopThreshold = 38
JitGetHotLoopThreshold = 39
JitSetMaxTraceLen = 40
JitGetMaxTraceLen = 41
MathPi = 42
MathTau = 43
MathE = 44
MathEpsilon = 45
MathInf = 46
MathNegInf = 47
MathNaN = 48
MathAbs = 49
MathSqrt = 50
MathCbrt = 51
MathExp = 52
MathExp2 = 53
MathLn = 54
MathLn1p = 55
MathLog2 = 56
MathLog10 = 57
MathSin = 58
MathCos = 59
MathTan = 60
MathAsin = 61
MathAcos = 62
MathAtan = 63
MathSinh = 64
MathCosh = 65
MathTanh = 66
MathFloor = 67
MathCeil = 68
MathRound = 69
MathTrunc = 70
MathFract = 71
MathSignum = 72
MathToDegrees = 73
MathToRadians = 74
MathIsNaN = 75
MathIsInfinite = 76
MathIsFinite = 77
MathAtan2 = 78
MathPowF = 79
MathPowI = 80
MathHypot = 81
MathLog = 82
MathMin = 83
MathMax = 84
MathCopySign = 85
MathClamp = 86
MathMulAdd = 87
Count = 88
FormatTemplate = 89
ToString = 90
TypeOf = 91
Assert = 92
Implementations§
Source§impl BuiltinFunction
impl BuiltinFunction
pub fn arity(self) -> u8
pub fn accepts_arity(self, arity: u8) -> bool
pub fn from_namespaced_name(name: &str) -> Option<Self>
pub fn call_index(self) -> u16
Trait Implementations§
Source§impl Clone for BuiltinFunction
impl Clone for BuiltinFunction
Source§fn clone(&self) -> BuiltinFunction
fn clone(&self) -> BuiltinFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BuiltinFunction
Source§impl Debug for BuiltinFunction
impl Debug for BuiltinFunction
impl Eq for BuiltinFunction
Source§impl Hash for BuiltinFunction
impl Hash for BuiltinFunction
Source§impl PartialEq for BuiltinFunction
impl PartialEq for BuiltinFunction
impl StructuralPartialEq for BuiltinFunction
Auto Trait Implementations§
impl Freeze for BuiltinFunction
impl RefUnwindSafe for BuiltinFunction
impl Send for BuiltinFunction
impl Sync for BuiltinFunction
impl Unpin for BuiltinFunction
impl UnsafeUnpin for BuiltinFunction
impl UnwindSafe for BuiltinFunction
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.