Skip to main content

BuiltinFunction

Enum BuiltinFunction 

Source
#[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

Source

pub fn arity(self) -> u8

Source

pub fn accepts_arity(self, arity: u8) -> bool

Source

pub fn from_namespaced_name(name: &str) -> Option<Self>

Source

pub fn call_index(self) -> u16

Trait Implementations§

Source§

impl Clone for BuiltinFunction

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Copy for BuiltinFunction

Source§

impl Debug for BuiltinFunction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for BuiltinFunction

Source§

impl Hash for BuiltinFunction

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for BuiltinFunction

Source§

fn eq(&self, other: &BuiltinFunction) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for BuiltinFunction

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.