pub enum Builtin {
Show 232 variants
Str,
Num,
Abs,
Flr,
Cel,
Rou,
Min,
Max,
Mod,
Fmod,
Clamp,
Pow,
Sqrt,
Log,
Exp,
Sin,
Cos,
Tan,
Log10,
Log2,
Asin,
Acos,
Atan,
Atan2,
Sum,
Prod,
Cumsum,
Cprod,
Ewm,
Avg,
Median,
Quantile,
Stdev,
Variance,
Fft,
Ifft,
Transpose,
Matmul,
Dot,
Matvec,
Len,
Hd,
At,
Tl,
Rev,
Srt,
Rsrt,
Slc,
Lst,
Take,
Drop,
Unq,
Flat,
Has,
Spl,
Cat,
Zip,
Enumerate,
Range,
Linspace,
Ones,
Rep,
Window,
Chunks,
Setunion,
Setinter,
Setdiff,
Map,
Flt,
Fld,
Ct,
Grp,
Uniqby,
Partition,
Frq,
Flatmap,
Mapr,
Rnd,
Rndn,
RandBytes,
Seed,
Now,
NowMs,
Dtfmt,
Dtparse,
DtparseRel,
Sleep,
TzOffset,
Rd,
RdJson,
Rdl,
Rdb,
Rdin,
Rdinl,
ForLine,
Wr,
Wra,
Wro,
Wrl,
Prnt,
Env,
WorldCap,
WorldNoNet,
Ls,
Walk,
Glob,
Fsize,
Mtime,
Isfile,
Isdir,
EnvAll,
Trm,
Upr,
Lwr,
Cap,
Padl,
Padr,
Ord,
Chr,
Chars,
Fmt,
Fmt2,
Rgx,
Rgxall,
Rgxall1,
Rgxsub,
RgxallMulti,
Jpth,
Jkeys,
Jdmp,
Jpar,
JparList,
Rdjl,
Get,
Post,
GetMany,
GetTo,
PstTo,
Getx,
Pstx,
Put,
Pat,
Del,
Hed,
Opt,
GetStream,
GetStreamH,
PostStream,
PostStreamH,
Run,
Run2,
RunBg,
Mmap,
Mget,
Mset,
Mhas,
Mkeys,
Mvals,
Mdel,
MgetOr,
LgetOr,
Mpairs,
Solve,
Inv,
Det,
Lstsq,
Argmax,
Argmin,
Argsort,
Bisect,
ParMap,
Dirname,
Basename,
Pathjoin,
Pi,
Tau,
Eu,
DurParse,
DurFmt,
DefaultOnErr,
Urlenc,
Urldec,
B64u,
B64uDec,
Sha256,
HmacSha256,
B64,
B64Dec,
HexEnc,
CtEq,
Sha256Hex,
Sha256d,
Tokcount,
Where,
AddMo,
LastDom,
NextBusinessDay,
DayOfWeek,
Rsum,
Ravg,
Rmin,
Idxof,
HexRev,
Band,
Bor,
Bxor,
Bnot,
Bshl,
Bshr,
Brot,
Band64,
Bor64,
Bxor64,
Bnot64,
Bshl64,
Bshr64,
Brot64,
Arange,
Zeros,
Vstack,
Hstack,
ColumnStack,
Hist,
Convolve,
Searchsorted,
Cabs,
Cmul,
Pairwise,
Pdist2,
RunFullEnv,
Run2FullEnv,
Spawn,
}Expand description
Enum of all builtin functions in ilo.
Resolving a function name to a Builtin variant should happen at
compile time (in the bytecode compiler) or once at the start of
interpretation, so that hot dispatch paths use integer-discriminant
matching rather than string comparisons.
Variants§
Str
Num
Abs
Flr
Cel
Rou
Min
Max
Mod
Fmod
Clamp
Pow
Sqrt
Log
Exp
Sin
Cos
Tan
Log10
Log2
Asin
Acos
Atan
Atan2
Sum
Prod
Cumsum
Cprod
Ewm
Avg
Median
Quantile
Stdev
Variance
Fft
Ifft
Transpose
Matmul
Dot
Matvec
Len
Hd
At
Tl
Rev
Srt
Rsrt
Slc
Lst
Take
Drop
Unq
Flat
Has
Spl
Cat
Zip
Enumerate
Range
Linspace
Ones
Rep
Window
Chunks
Setunion
Setinter
Setdiff
Map
Flt
Fld
Ct
Grp
Uniqby
Partition
Frq
Flatmap
Mapr
Rnd
Rndn
RandBytes
Seed
Now
NowMs
Dtfmt
Dtparse
DtparseRel
Sleep
TzOffset
Rd
RdJson
Rdl
Rdb
Rdin
Rdinl
ForLine
Wr
Wra
Wro
Wrl
Prnt
Env
WorldCap
world > World — return the current capability World value.
Zero args; reads from the runtime’s active Caps.
WorldNoNet
world-no-net > World — construct a World with net=false.
All other caps (read, write, run) are inherited from the runtime Caps.
Used to pass a restricted capability token to a sub-function that should
not perform network I/O; the verifier enforces this statically (ILO-T044).
Ls
Walk
Glob
Fsize
Mtime
Isfile
Isdir
EnvAll
Trm
Upr
Lwr
Cap
Padl
Padr
Ord
Chr
Chars
Fmt
Fmt2
Rgx
Rgxall
Rgxall1
Rgxsub
RgxallMulti
Jpth
Jkeys
Jdmp
Jpar
JparList
Rdjl
Get
Post
GetMany
GetTo
PstTo
Getx
Pstx
Put
Pat
Del
Hed
Opt
GetStream
GetStreamH
PostStream
PostStreamH
Run
Run2
RunBg
Mmap
Mget
Mset
Mhas
Mkeys
Mvals
Mdel
MgetOr
LgetOr
Mpairs
Solve
Inv
Det
Lstsq
Argmax
Argmin
Argsort
Bisect
ParMap
Dirname
Basename
Pathjoin
Pi
Tau
Eu
DurParse
DurFmt
DefaultOnErr
Urlenc
Urldec
B64u
B64uDec
Sha256
HmacSha256
B64
B64Dec
HexEnc
CtEq
Sha256Hex
Sha256d
Tokcount
Where
AddMo
LastDom
NextBusinessDay
DayOfWeek
Rsum
Ravg
Rmin
Idxof
HexRev
Band
Bor
Bxor
Bnot
Bshl
Bshr
Brot
Band64
Bor64
Bxor64
Bnot64
Bshl64
Bshr64
Brot64
Arange
Zeros
Vstack
Hstack
ColumnStack
Hist
Convolve
Searchsorted
Cabs
Cmul
Pairwise
Pdist2
RunFullEnv
Run2FullEnv
Spawn
Implementations§
Source§impl Builtin
impl Builtin
Sourcepub const ALL: &'static [Builtin]
pub const ALL: &'static [Builtin]
Stable list of every Builtin variant, in canonical order.
The position of each variant in this slice is its on-wire tag
for OP_CALL_BUILTIN_TREE. Stability matters: appending is fine,
reordering or removing entries breaks any persisted bytecode.
Sourcepub fn from_name(s: &str) -> Option<Builtin>
pub fn from_name(s: &str) -> Option<Builtin>
Resolve a canonical builtin name to its enum variant.
Returns None for user-defined functions.
Sourcepub fn is_builtin(name: &str) -> bool
pub fn is_builtin(name: &str) -> bool
Check if a name refers to a builtin function.
Sourcepub fn stability(self) -> &'static str
pub fn stability(self) -> &'static str
Stability tier for this builtin, sourced from STABILITY.md.
"experimental"— unreleased (above0.12.1inCHANGELOG.md). May be removed or changed without notice."provisional"— shipped in a released version (0.12.1 or earlier). Signature may change pre-1.0; canonical short name is stable-ish.
Used by ilo spec --json ai to emit per-item stability annotations.
Trait Implementations§
impl Copy for Builtin
impl Eq for Builtin
impl StructuralPartialEq for Builtin
Auto Trait Implementations§
impl Freeze for Builtin
impl RefUnwindSafe for Builtin
impl Send for Builtin
impl Sync for Builtin
impl Unpin for Builtin
impl UnsafeUnpin for Builtin
impl UnwindSafe for Builtin
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.