#[repr(u16)]pub enum BuiltinId {
Show 227 variants
Print = 0,
Println = 1,
Len = 2,
Str = 3,
Int = 4,
Float = 5,
Abs = 6,
Min = 7,
Max = 8,
Range = 9,
Push = 10,
TypeOf = 11,
Map = 12,
Filter = 13,
Reduce = 14,
Sum = 15,
Any = 16,
All = 17,
ReadCsv = 18,
ReadParquet = 19,
WriteCsv = 20,
WriteParquet = 21,
Collect = 22,
Show = 23,
Describe = 24,
Head = 25,
Postgres = 26,
Tensor = 27,
TensorZeros = 28,
TensorOnes = 29,
TensorShape = 30,
TensorReshape = 31,
TensorTranspose = 32,
TensorSum = 33,
TensorMean = 34,
TensorDot = 35,
Predict = 36,
Similarity = 37,
AiComplete = 38,
AiChat = 39,
ModelSave = 40,
ModelLoad = 41,
ModelRegister = 42,
ModelList = 43,
ModelGet = 44,
AlertSlack = 45,
AlertWebhook = 46,
Emit = 47,
Lineage = 48,
RunPipeline = 49,
Sqrt = 50,
Pow = 51,
Floor = 52,
Ceil = 53,
Round = 54,
Sin = 55,
Cos = 56,
Tan = 57,
Log = 58,
Log2 = 59,
Log10 = 60,
Join = 61,
HttpGet = 62,
HttpPost = 63,
Assert = 64,
AssertEq = 65,
JsonParse = 66,
JsonStringify = 67,
MapFrom = 68,
ReadFile = 69,
WriteFile = 70,
AppendFile = 71,
FileExists = 72,
ListDir = 73,
EnvGet = 74,
EnvSet = 75,
RegexMatch = 76,
RegexFind = 77,
RegexReplace = 78,
Now = 79,
DateFormat = 80,
DateParse = 81,
Zip = 82,
Enumerate = 83,
Bool = 84,
Spawn = 85,
Sleep = 86,
Channel = 87,
Send = 88,
Recv = 89,
TryRecv = 90,
AwaitAll = 91,
Pmap = 92,
Timeout = 93,
Next = 94,
IsGenerator = 95,
Iter = 96,
Take = 97,
Skip_ = 98,
GenCollect = 99,
GenMap = 100,
GenFilter = 101,
Chain = 102,
GenZip = 103,
GenEnumerate = 104,
Ok = 105,
Err_ = 106,
IsOk = 107,
IsErr = 108,
Unwrap = 109,
SetFrom = 110,
SetAdd = 111,
SetRemove = 112,
SetContains = 113,
SetUnion = 114,
SetIntersection = 115,
SetDifference = 116,
FillNull = 117,
DropNull = 118,
Dedup = 119,
Clamp = 120,
DataProfile = 121,
RowCount = 122,
NullRate = 123,
IsUnique = 124,
IsEmail = 125,
IsUrl = 126,
IsPhone = 127,
IsBetween = 128,
Levenshtein = 129,
Soundex = 130,
ReadMysql = 131,
RedisConnect = 132,
RedisGet = 133,
RedisSet = 134,
RedisDel = 135,
GraphqlQuery = 136,
RegisterS3 = 137,
PyImport = 138,
PyCall = 139,
PyEval = 140,
PyGetAttr = 141,
PySetAttr = 142,
PyToTl = 143,
SchemaRegister = 144,
SchemaGet = 145,
SchemaLatest = 146,
SchemaHistory = 147,
SchemaCheck = 148,
SchemaDiff = 149,
SchemaApplyMigration = 150,
SchemaVersions = 151,
SchemaFields = 152,
Decimal = 153,
SecretGet = 154,
SecretSet = 155,
SecretDelete = 156,
SecretList = 157,
CheckPermission = 158,
MaskEmail = 159,
MaskPhone = 160,
MaskCreditCard = 161,
Redact = 162,
Hash = 163,
AsyncReadFile = 164,
AsyncWriteFile = 165,
AsyncHttpGet = 166,
AsyncHttpPost = 167,
AsyncSleep = 168,
Select = 169,
AsyncMap = 170,
AsyncFilter = 171,
RaceAll = 172,
IsError = 173,
ErrorType = 174,
GpuAvailable = 175,
ToGpu = 176,
ToCpu = 177,
GpuMatmul = 178,
GpuBatchPredict = 179,
ReadSqlite = 180,
WriteSqlite = 181,
Embed = 182,
HttpRequest = 183,
RunAgent = 184,
Random = 185,
RandomInt = 186,
Sample = 187,
Exp = 188,
IsNan = 189,
IsInfinite = 190,
Sign = 191,
AssertTableEq = 192,
Today = 193,
DateAdd = 194,
DateDiff = 195,
DateTrunc = 196,
DateExtract = 197,
StreamAgent = 198,
PostgresQuery = 199,
Fold = 200,
TlConfigResolve = 201,
ReadDuckDb = 202,
WriteDuckDb = 203,
ReadRedshift = 204,
ReadMssql = 205,
ReadSnowflake = 206,
ReadBigQuery = 207,
ReadDatabricks = 208,
ReadClickHouse = 209,
ReadMongo = 210,
SftpDownload = 211,
SftpUpload = 212,
SftpList = 213,
SftpReadCsv = 214,
SftpReadParquet = 215,
McpConnect = 216,
McpListTools = 217,
McpCallTool = 218,
McpDisconnect = 219,
McpServe = 220,
McpServerInfo = 221,
McpPing = 222,
McpListResources = 223,
McpReadResource = 224,
McpListPrompts = 225,
McpGetPrompt = 226,
}Expand description
Builtin function identifiers — avoids string comparisons in the VM hot loop.
Variants§
Print = 0
Println = 1
Len = 2
Str = 3
Int = 4
Float = 5
Abs = 6
Min = 7
Max = 8
Range = 9
Push = 10
TypeOf = 11
Map = 12
Filter = 13
Reduce = 14
Sum = 15
Any = 16
All = 17
ReadCsv = 18
ReadParquet = 19
WriteCsv = 20
WriteParquet = 21
Collect = 22
Show = 23
Describe = 24
Head = 25
Postgres = 26
Tensor = 27
TensorZeros = 28
TensorOnes = 29
TensorShape = 30
TensorReshape = 31
TensorTranspose = 32
TensorSum = 33
TensorMean = 34
TensorDot = 35
Predict = 36
Similarity = 37
AiComplete = 38
AiChat = 39
ModelSave = 40
ModelLoad = 41
ModelRegister = 42
ModelList = 43
ModelGet = 44
AlertSlack = 45
AlertWebhook = 46
Emit = 47
Lineage = 48
RunPipeline = 49
Sqrt = 50
Pow = 51
Floor = 52
Ceil = 53
Round = 54
Sin = 55
Cos = 56
Tan = 57
Log = 58
Log2 = 59
Log10 = 60
Join = 61
HttpGet = 62
HttpPost = 63
Assert = 64
AssertEq = 65
JsonParse = 66
JsonStringify = 67
MapFrom = 68
ReadFile = 69
WriteFile = 70
AppendFile = 71
FileExists = 72
ListDir = 73
EnvGet = 74
EnvSet = 75
RegexMatch = 76
RegexFind = 77
RegexReplace = 78
Now = 79
DateFormat = 80
DateParse = 81
Zip = 82
Enumerate = 83
Bool = 84
Spawn = 85
Sleep = 86
Channel = 87
Send = 88
Recv = 89
TryRecv = 90
AwaitAll = 91
Pmap = 92
Timeout = 93
Next = 94
IsGenerator = 95
Iter = 96
Take = 97
Skip_ = 98
GenCollect = 99
GenMap = 100
GenFilter = 101
Chain = 102
GenZip = 103
GenEnumerate = 104
Ok = 105
Err_ = 106
IsOk = 107
IsErr = 108
Unwrap = 109
SetFrom = 110
SetAdd = 111
SetRemove = 112
SetContains = 113
SetUnion = 114
SetIntersection = 115
SetDifference = 116
FillNull = 117
DropNull = 118
Dedup = 119
Clamp = 120
DataProfile = 121
RowCount = 122
NullRate = 123
IsUnique = 124
IsEmail = 125
IsUrl = 126
IsPhone = 127
IsBetween = 128
Levenshtein = 129
Soundex = 130
ReadMysql = 131
RedisConnect = 132
RedisGet = 133
RedisSet = 134
RedisDel = 135
GraphqlQuery = 136
RegisterS3 = 137
PyImport = 138
PyCall = 139
PyEval = 140
PyGetAttr = 141
PySetAttr = 142
PyToTl = 143
SchemaRegister = 144
SchemaGet = 145
SchemaLatest = 146
SchemaHistory = 147
SchemaCheck = 148
SchemaDiff = 149
SchemaApplyMigration = 150
SchemaVersions = 151
SchemaFields = 152
Decimal = 153
SecretGet = 154
SecretSet = 155
SecretDelete = 156
SecretList = 157
CheckPermission = 158
MaskEmail = 159
MaskPhone = 160
MaskCreditCard = 161
Redact = 162
Hash = 163
AsyncReadFile = 164
AsyncWriteFile = 165
AsyncHttpGet = 166
AsyncHttpPost = 167
AsyncSleep = 168
Select = 169
AsyncMap = 170
AsyncFilter = 171
RaceAll = 172
IsError = 173
ErrorType = 174
GpuAvailable = 175
ToGpu = 176
ToCpu = 177
GpuMatmul = 178
GpuBatchPredict = 179
ReadSqlite = 180
WriteSqlite = 181
Embed = 182
HttpRequest = 183
RunAgent = 184
Random = 185
RandomInt = 186
Sample = 187
Exp = 188
IsNan = 189
IsInfinite = 190
Sign = 191
AssertTableEq = 192
Today = 193
DateAdd = 194
DateDiff = 195
DateTrunc = 196
DateExtract = 197
StreamAgent = 198
PostgresQuery = 199
Fold = 200
TlConfigResolve = 201
ReadDuckDb = 202
WriteDuckDb = 203
ReadRedshift = 204
ReadMssql = 205
ReadSnowflake = 206
ReadBigQuery = 207
ReadDatabricks = 208
ReadClickHouse = 209
ReadMongo = 210
SftpDownload = 211
SftpUpload = 212
SftpList = 213
SftpReadCsv = 214
SftpReadParquet = 215
McpConnect = 216
McpListTools = 217
McpCallTool = 218
McpDisconnect = 219
McpServe = 220
McpServerInfo = 221
McpPing = 222
McpListResources = 223
McpReadResource = 224
McpListPrompts = 225
McpGetPrompt = 226
Implementations§
Trait Implementations§
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<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<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<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);