#[repr(u16)]pub enum BuiltinId {
Show 117 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,
ParPipeline = 91,
GlobParProgress = 92,
ParPipelineStream = 93,
ParSed = 94,
ParSedProgress = 95,
Each = 96,
Readpipe = 97,
ReadLineList = 98,
ReaddirList = 99,
Ssh = 100,
Rmdir = 101,
Utime = 102,
Umask = 103,
Getcwd = 104,
Pipe = 105,
Files = 106,
Filesf = 107,
FilesfRecursive = 108,
Dirs = 109,
DirsRecursive = 110,
SymLinks = 111,
Sockets = 112,
Pipes = 113,
BlockDevices = 114,
CharDevices = 115,
Executables = 116,
}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
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
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).
ParPipeline = 91
par_pipeline(...) — list form: same as pipeline but parallel filter/map on collect().
GlobParProgress = 92
glob_par(..., progress => EXPR) — last stack arg is truthy progress flag.
ParPipelineStream = 93
par_pipeline_stream(...) — streaming pipeline with bounded channels between stages.
ParSed = 94
par_sed(PATTERN, REPLACEMENT, FILES...) — parallel in-place regex substitution per file.
ParSedProgress = 95
par_sed(..., progress => EXPR) — last stack arg is truthy progress flag.
Each = 96
each EXPR — matches tree interpreter (returns empty list).
Readpipe = 97
`cmd` / qx{...} — stdout string via sh -c (Perl readpipe); sets $?.
ReadLineList = 98
readline / <HANDLE> in list context — all remaining lines until EOF (Perl readline list semantics).
ReaddirList = 99
readdir in list context — all names not yet returned (Perl drains the rest of the stream).
Ssh = 100
ssh HOST, CMD, … / ssh(HOST, …) — execvp style ssh only (no shell).
Rmdir = 101
rmdir LIST — remove empty directories; returns count removed (appended ID).
Utime = 102
utime ATIME, MTIME, LIST — set access/mod times (Unix).
Umask = 103
umask EXPR / umask() — process file mode creation mask (Unix).
Getcwd = 104
getcwd / Cwd::getcwd / CORE::getcwd.
Pipe = 105
pipe READHANDLE, WRITEHANDLE — OS pipe ends (Unix).
Files = 106
files / files DIR — list file names in a directory (default: .).
Filesf = 107
filesf / filesf DIR / f — list only regular file names in a directory (default: .).
FilesfRecursive = 108
fr DIR — list only regular file names recursively (default: .).
Dirs = 109
dirs / dirs DIR / d — list subdirectory names in a directory (default: .).
DirsRecursive = 110
dr DIR — list subdirectory paths recursively (default: .).
SymLinks = 111
sym_links / sym_links DIR — list symlink names in a directory (default: .).
Sockets = 112
sockets / sockets DIR — list Unix socket names in a directory (default: .).
Pipes = 113
pipes / pipes DIR — list named-pipe (FIFO) names in a directory (default: .).
BlockDevices = 114
block_devices / block_devices DIR — list block device names in a directory (default: .).
CharDevices = 115
char_devices / char_devices DIR — list character device names in a directory (default: .).
Executables = 116
exe / exe DIR — list executable file names in a directory (default: .).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BuiltinId
impl<'de> Deserialize<'de> for BuiltinId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Copy for BuiltinId
impl Eq for BuiltinId
impl StructuralPartialEq for BuiltinId
Auto Trait Implementations§
impl Freeze for BuiltinId
impl RefUnwindSafe for BuiltinId
impl Send for BuiltinId
impl Sync for BuiltinId
impl Unpin for BuiltinId
impl UnsafeUnpin for BuiltinId
impl UnwindSafe for BuiltinId
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
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.