Skip to main content

BuiltinMethod

Enum BuiltinMethod 

Source
#[repr(u8)]
pub enum BuiltinMethod {
Show 112 variants Len = 0, Keys = 1, Values = 2, Entries = 3, ToPairs = 4, FromPairs = 5, Invert = 6, Reverse = 7, Type = 8, ToString = 9, ToJson = 10, FromJson = 11, Sum = 12, Avg = 13, Min = 14, Max = 15, Count = 16, Any = 17, All = 18, GroupBy = 19, CountBy = 20, IndexBy = 21, Filter = 22, Map = 23, FlatMap = 24, Sort = 25, Unique = 26, Flatten = 27, Compact = 28, Join = 29, First = 30, Last = 31, Nth = 32, Append = 33, Prepend = 34, Remove = 35, Diff = 36, Intersect = 37, Union = 38, Enumerate = 39, Pairwise = 40, Window = 41, Chunk = 42, TakeWhile = 43, DropWhile = 44, Accumulate = 45, Partition = 46, Zip = 47, ZipLongest = 48, Pick = 49, Omit = 50, Merge = 51, DeepMerge = 52, Defaults = 53, Rename = 54, TransformKeys = 55, TransformValues = 56, FilterKeys = 57, FilterValues = 58, Pivot = 59, GetPath = 60, SetPath = 61, DelPath = 62, DelPaths = 63, HasPath = 64, FlattenKeys = 65, UnflattenKeys = 66, ToCsv = 67, ToTsv = 68, Or = 69, Has = 70, Missing = 71, Includes = 72, Set = 73, Update = 74, Upper = 75, Lower = 76, Capitalize = 77, TitleCase = 78, Trim = 79, TrimLeft = 80, TrimRight = 81, Lines = 82, Words = 83, Chars = 84, ToNumber = 85, ToBool = 86, ToBase64 = 87, FromBase64 = 88, UrlEncode = 89, UrlDecode = 90, HtmlEscape = 91, HtmlUnescape = 92, Repeat = 93, PadLeft = 94, PadRight = 95, StartsWith = 96, EndsWith = 97, IndexOf = 98, LastIndexOf = 99, Replace = 100, ReplaceAll = 101, StripPrefix = 102, StripSuffix = 103, Slice = 104, Split = 105, Indent = 106, Dedent = 107, Matches = 108, Scan = 109, EquiJoin = 110, Unknown = 111,
}
Expand description

Pre-resolved method identifier — eliminates string comparison at dispatch.

Variants§

§

Len = 0

§

Keys = 1

§

Values = 2

§

Entries = 3

§

ToPairs = 4

§

FromPairs = 5

§

Invert = 6

§

Reverse = 7

§

Type = 8

§

ToString = 9

§

ToJson = 10

§

FromJson = 11

§

Sum = 12

§

Avg = 13

§

Min = 14

§

Max = 15

§

Count = 16

§

Any = 17

§

All = 18

§

GroupBy = 19

§

CountBy = 20

§

IndexBy = 21

§

Filter = 22

§

Map = 23

§

FlatMap = 24

§

Sort = 25

§

Unique = 26

§

Flatten = 27

§

Compact = 28

§

Join = 29

§

First = 30

§

Last = 31

§

Nth = 32

§

Append = 33

§

Prepend = 34

§

Remove = 35

§

Diff = 36

§

Intersect = 37

§

Union = 38

§

Enumerate = 39

§

Pairwise = 40

§

Window = 41

§

Chunk = 42

§

TakeWhile = 43

§

DropWhile = 44

§

Accumulate = 45

§

Partition = 46

§

Zip = 47

§

ZipLongest = 48

§

Pick = 49

§

Omit = 50

§

Merge = 51

§

DeepMerge = 52

§

Defaults = 53

§

Rename = 54

§

TransformKeys = 55

§

TransformValues = 56

§

FilterKeys = 57

§

FilterValues = 58

§

Pivot = 59

§

GetPath = 60

§

SetPath = 61

§

DelPath = 62

§

DelPaths = 63

§

HasPath = 64

§

FlattenKeys = 65

§

UnflattenKeys = 66

§

ToCsv = 67

§

ToTsv = 68

§

Or = 69

§

Has = 70

§

Missing = 71

§

Includes = 72

§

Set = 73

§

Update = 74

§

Upper = 75

§

Lower = 76

§

Capitalize = 77

§

TitleCase = 78

§

Trim = 79

§

TrimLeft = 80

§

TrimRight = 81

§

Lines = 82

§

Words = 83

§

Chars = 84

§

ToNumber = 85

§

ToBool = 86

§

ToBase64 = 87

§

FromBase64 = 88

§

UrlEncode = 89

§

UrlDecode = 90

§

HtmlEscape = 91

§

HtmlUnescape = 92

§

Repeat = 93

§

PadLeft = 94

§

PadRight = 95

§

StartsWith = 96

§

EndsWith = 97

§

IndexOf = 98

§

LastIndexOf = 99

§

Replace = 100

§

ReplaceAll = 101

§

StripPrefix = 102

§

StripSuffix = 103

§

Slice = 104

§

Split = 105

§

Indent = 106

§

Dedent = 107

§

Matches = 108

§

Scan = 109

§

EquiJoin = 110

§

Unknown = 111

Implementations§

Source§

impl BuiltinMethod

Source

pub fn from_name(name: &str) -> Self

Trait Implementations§

Source§

impl Clone for BuiltinMethod

Source§

fn clone(&self) -> BuiltinMethod

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BuiltinMethod

Source§

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

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

impl PartialEq for BuiltinMethod

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for BuiltinMethod

Source§

impl Eq for BuiltinMethod

Source§

impl StructuralPartialEq for BuiltinMethod

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<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.