Skip to main content

BuiltinId

Enum BuiltinId 

Source
#[repr(u16)]
pub enum BuiltinId {
Show 118 variants Length = 0, Chomp = 1, Chop = 2, Substr = 3, Index = 4, Rindex = 5, Uc = 6, Lc = 7, Ucfirst = 8, Lcfirst = 9, Chr = 10, Ord = 11, Hex = 12, Oct = 13, Join = 14, Split = 15, Sprintf = 16, Abs = 17, Int = 18, Sqrt = 19, Defined = 20, Ref = 21, Scalar = 22, Splice = 23, Reverse = 24, Sort = 25, Unshift = 26, Open = 27, Close = 28, Eof = 29, ReadLine = 30, Printf = 31, System = 32, Exec = 33, Exit = 34, Die = 35, Warn = 36, Chdir = 37, Mkdir = 38, Unlink = 39, Eval = 40, Do = 41, Require = 42, Bless = 43, Caller = 44, PMap = 45, PGrep = 46, PFor = 47, PSort = 48, Fan = 49, MapBlock = 50, GrepBlock = 51, SortBlock = 52, Sin = 53, Cos = 54, Atan2 = 55, Exp = 56, Log = 57, Rand = 58, Srand = 59, Crypt = 60, Fc = 61, Pos = 62, Study = 63, Stat = 64, Lstat = 65, Link = 66, Symlink = 67, Readlink = 68, Glob = 69, Opendir = 70, Readdir = 71, Closedir = 72, Rewinddir = 73, Telldir = 74, Seekdir = 75, Slurp = 76, FetchUrl = 77, Pchannel = 78, GlobPar = 79, DequeNew = 80, HeapNew = 81, Pipeline = 82, Capture = 83, Ppool = 84, Wantarray = 85, Rename = 86, Chmod = 87, Chown = 88, Pselect = 89, BarrierNew = 90, ClusterNew = 91, ParPipeline = 92, GlobParProgress = 93, ParPipelineStream = 94, ParSed = 95, ParSedProgress = 96, Each = 97, Readpipe = 98, ReadLineList = 99, ReaddirList = 100, Ssh = 101, Rmdir = 102, Utime = 103, Umask = 104, Getcwd = 105, Pipe = 106, Files = 107, Filesf = 108, FilesfRecursive = 109, Dirs = 110, DirsRecursive = 111, SymLinks = 112, Sockets = 113, Pipes = 114, BlockDevices = 115, CharDevices = 116, Executables = 117,
}
Expand description

Built-in function IDs for CallBuiltin dispatch.

Variants§

§

Length = 0

§

Chomp = 1

§

Chop = 2

§

Substr = 3

§

Index = 4

§

Rindex = 5

§

Uc = 6

§

Lc = 7

§

Ucfirst = 8

§

Lcfirst = 9

§

Chr = 10

§

Ord = 11

§

Hex = 12

§

Oct = 13

§

Join = 14

§

Split = 15

§

Sprintf = 16

§

Abs = 17

§

Int = 18

§

Sqrt = 19

§

Defined = 20

§

Ref = 21

§

Scalar = 22

§

Splice = 23

§

Reverse = 24

§

Sort = 25

§

Unshift = 26

§

Open = 27

§

Close = 28

§

Eof = 29

§

ReadLine = 30

§

Printf = 31

§

System = 32

§

Exec = 33

§

Exit = 34

§

Die = 35

§

Warn = 36

§

Chdir = 37

§

Mkdir = 38

§

Eval = 40

§

Do = 41

§

Require = 42

§

Bless = 43

§

Caller = 44

§

PMap = 45

§

PGrep = 46

§

PFor = 47

§

PSort = 48

§

Fan = 49

§

MapBlock = 50

§

GrepBlock = 51

§

SortBlock = 52

§

Sin = 53

§

Cos = 54

§

Atan2 = 55

§

Exp = 56

§

Log = 57

§

Rand = 58

§

Srand = 59

§

Crypt = 60

§

Fc = 61

§

Pos = 62

§

Study = 63

§

Stat = 64

§

Lstat = 65

§

Glob = 69

§

Opendir = 70

§

Readdir = 71

§

Closedir = 72

§

Rewinddir = 73

§

Telldir = 74

§

Seekdir = 75

§

Slurp = 76

Read entire file as UTF-8 (slurp $path).

§

FetchUrl = 77

Blocking HTTP GET (fetch_url $url).

§

Pchannel = 78

pchannel()(tx, rx) as a two-element list.

§

GlobPar = 79

Parallel recursive glob (glob_par).

§

DequeNew = 80

deque() — empty deque.

§

HeapNew = 81

heap(fn { }) — empty heap with comparator.

§

Pipeline = 82

pipeline(...) — lazy iterator (filter/map/take/collect).

§

Capture = 83

capture("cmd") — structured stdout/stderr/exit (via sh -c).

§

Ppool = 84

ppool(N) — persistent thread pool (submit / collect).

§

Wantarray = 85

Scalar/list context query (wantarray).

§

Rename = 86

rename OLD, NEW

§

Chmod = 87

chmod MODE, ...

§

Chown = 88

chown UID, GID, ...

§

Pselect = 89

pselect($rx1, $rx2, ...) — multiplexed recv; returns (value, index).

§

BarrierNew = 90

barrier(N) — thread barrier (->wait).

§

ClusterNew = 91

cluster(HOST_OR_LIST...) — build a RemoteCluster value used as the dispatch target by pmap_on / ~d>. Operand shapes match RemoteCluster::from_list_args: bare host ("h1"), host with slot count ("h1:4"), host with explicit pe_path ("h1:3:/usr/local/bin/stryke"), or a hash with tunables ({ job_timeout_ms => N, max_attempts => M, ... }).

§

ParPipeline = 92

par_pipeline(...) — list form: same as pipeline but parallel filter/map on collect().

§

GlobParProgress = 93

glob_par(..., progress => EXPR) — last stack arg is truthy progress flag.

§

ParPipelineStream = 94

par_pipeline_stream(...) — streaming pipeline with bounded channels between stages.

§

ParSed = 95

par_sed(PATTERN, REPLACEMENT, FILES...) — parallel in-place regex substitution per file.

§

ParSedProgress = 96

par_sed(..., progress => EXPR) — last stack arg is truthy progress flag.

§

Each = 97

each EXPR — returns empty list.

§

Readpipe = 98

`cmd` / qx{...} — stdout string via sh -c (Perl readpipe); sets $?.

§

ReadLineList = 99

readline / <HANDLE> in list context — all remaining lines until EOF (Perl readline list semantics).

§

ReaddirList = 100

readdir in list context — all names not yet returned (Perl drains the rest of the stream).

§

Ssh = 101

ssh HOST, CMD, … / ssh(HOST, …)execvp style ssh only (no shell).

§

Rmdir = 102

rmdir LIST — remove empty directories; returns count removed (appended ID).

§

Utime = 103

utime ATIME, MTIME, LIST — set access/mod times (Unix).

§

Umask = 104

umask EXPR / umask() — process file mode creation mask (Unix).

§

Getcwd = 105

getcwd / pwd — bare-name builtin returning the absolute current working directory.

§

Pipe = 106

pipe READHANDLE, WRITEHANDLE — OS pipe ends (Unix).

§

Files = 107

files / files DIR — list file names in a directory (default: .).

§

Filesf = 108

filesf / filesf DIR / f — list only regular file names in a directory (default: .).

§

FilesfRecursive = 109

fr DIR — list only regular file names recursively (default: .).

§

Dirs = 110

dirs / dirs DIR / d — list subdirectory names in a directory (default: .).

§

DirsRecursive = 111

dr DIR — list subdirectory paths recursively (default: .).

sym_links / sym_links DIR — list symlink names in a directory (default: .).

§

Sockets = 113

sockets / sockets DIR — list Unix socket names in a directory (default: .).

§

Pipes = 114

pipes / pipes DIR — list named-pipe (FIFO) names in a directory (default: .).

§

BlockDevices = 115

block_devices / block_devices DIR — list block device names in a directory (default: .).

§

CharDevices = 116

char_devices / char_devices DIR — list character device names in a directory (default: .).

§

Executables = 117

exe / exe DIR — list executable file names in a directory (default: .).

Implementations§

Source§

impl BuiltinId

Source

pub fn from_u16(v: u16) -> Option<Self>

Trait Implementations§

Source§

impl Clone for BuiltinId

Source§

fn clone(&self) -> BuiltinId

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 Debug for BuiltinId

Source§

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

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

impl<'de> Deserialize<'de> for BuiltinId

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for BuiltinId

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 Serialize for BuiltinId

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for BuiltinId

Source§

impl Eq for BuiltinId

Source§

impl StructuralPartialEq for BuiltinId

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> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

Source§

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
Source§

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

Source§

fn __clone_box(&self, _: Private) -> *mut ()

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> Finish for T

Source§

fn finish(self)

Does nothing but move self, equivalent to drop.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Gets the layout of the type.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The type for metadata in pointers and references to Self.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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<U, T> ToOwnedObj<U> for T
where U: FromObjRef<T>,

Source§

fn to_owned_obj(&self, data: FontData<'_>) -> U

Convert this type into T, using the provided data to resolve any offsets.
Source§

impl<U, T> ToOwnedTable<U> for T
where U: FromTableRef<T>,

Source§

fn to_owned_table(&self) -> U

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

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,