#[repr(u8)]pub enum BuiltinsFunctions {
Show 37 variants
Abs = 0,
All = 1,
Any = 2,
Bin = 3,
Chr = 4,
Divmod = 5,
Enumerate = 6,
Filter = 7,
Getattr = 8,
Hasattr = 9,
Hash = 10,
Hex = 11,
Id = 12,
Isinstance = 13,
Len = 14,
Map = 15,
Max = 16,
Min = 17,
Next = 18,
Oct = 19,
Open = 20,
Ord = 21,
Pow = 22,
Print = 23,
Repr = 24,
Reversed = 25,
Round = 26,
Setattr = 27,
Sorted = 28,
Sum = 29,
Type = 30,
Zip = 31,
ObjectSetattr = 32,
Format = 33,
Eval = 34,
Exec = 35,
Locals = 36,
}Expand description
Enumerates every interpreter-native Python builtin function.
Listed alphabetically per https://docs.python.org/3/library/functions.html Commented-out variants are not yet implemented.
Note: Type constructors are handled by the Type enum, not here.
Uses strum derives for automatic Display, FromStr, and IntoStaticStr implementations.
All variants serialize to lowercase (e.g., Print -> “print”).
Variants§
Abs = 0
All = 1
Any = 2
Bin = 3
Chr = 4
Divmod = 5
Enumerate = 6
Filter = 7
Getattr = 8
Hasattr = 9
Hash = 10
Hex = 11
Id = 12
Isinstance = 13
Len = 14
Map = 15
Max = 16
Min = 17
Next = 18
Oct = 19
Open = 20
Ord = 21
Pow = 22
Print = 23
Repr = 24
Reversed = 25
Round = 26
Setattr = 27
Sorted = 28
Sum = 29
Type = 30
Zip = 31
ObjectSetattr = 32
object.__setattr__(obj, name, value) — the write that bypasses a
class’s attribute hooks, reached only through object. Its name is not
an identifier, so it can never resolve as a bare global.
The first variant whose name is not its lowercased identifier, so it
needs both renames: serde and strum each carry the name across a
different boundary (JSON vs. Display/FromStr) and must agree.
Format = 33
format(value, format_spec=''), appended after Self::ObjectSetattr.
Eval = 34
eval(source, /, globals=None, locals=None), appended after Self::Format.
Exec = 35
exec(source, /, globals=None, locals=None, *, closure=None), appended after Self::Eval.
Locals = 36
locals(), appended after Self::Exec.