Expand description
Per-language spellings of ABI types, names, and values, called from the Askama templates.
Every function takes the borrowed nativeview-abi descriptors directly. super::layout and
[super::validate] reject every type spelling a template cannot express before rendering
starts, so the /* unsupported */ fallback below is unreachable (and would fail the host
compile if it were not).
Modules§
Functions§
- bare
- Constant name without the
NV_namespace (NV_ABI_MAGIC->ABI_MAGIC). - camel
lowerCamelof a snake / SCREAMING identifier (NV_ABI_MAGIC->nvAbiMagic). A leading_is dropped: Dart would make the name library-private.- enum_
prefix - Constant prefix of one runtime ABI enum’s values: its name without the
NvRuntime/Nvnamespace,SCREAMING(NvRuntimeStatus->STATUS), so each enum owns its own prefix. - hi_hex
- High 32 bits of a 64-bit constant as
0x......... - int
- Enum discriminant / constant: hex from
0x1000up, decimal below. - java_
int - Java
intliteral: hex abovei32::MAX, where a decimal literal would not compile. - java_
width - Java
intconstants for a layout value: one constant when every data model agrees, else_64/_32(or one constant when those agree) plus_I386where i386 differs from ILP32. - lo_hex
- Low 32 bits of a 64-bit constant as
0x......... - one_
line - Single-line comment text: newlines folded so a doc can never end the comment early.
- pascal
UpperCamelof a snake / dotted identifier (nv.text_input->NvTextInput).- record_
prefix NvNodeRow->NODE_ROW(Java / TS constant prefix of a record).- screaming
SCREAMING_SNAKEof a Rust identifier (NvValueTag->NV_VALUE_TAG,hit_test->HIT_TEST).- snake
snake_caseof a Rust identifier (Surface->surface).- uint
- Unsigned constant spelled as declared (
hex = true->0x...). - uint64
- 64-bit unsigned constant (
hex = true-> 16-digit0x...).