渲染zh-Hant

verte

Translation status: 繁體中文 reader-locale proof. Code fences render through the zh-Hant pipeline; prose is canonical Latin.

Braced canonical @ verte rename mapping.

Syntax: @ verte { target = rs, methodus = \"…\" }

Category#

codegen

Examples#

radix/corpus/annotation-sugar/verte-braced.fab (canonical · annotation)#

Braced canonical @ verte rename mapping.

# =============================================================================
# verte — Braced canonical @ verte rename mapping.
# =============================================================================
#
# What this teaches:
#   • Backend rename mapping — `@ verte { target = rs, methodus = "push" }`
#     maps a Faber function to a differently-named backend method
#   • Braced annotation syntax — the target backend and methodus fields
#     configure code generation renaming
#
# Common mistakes:
#   • forgetting to specify the target backend in `@ verte { target = rs, methodus = "..." }`
#
# See also: verte, annotation-sugar
# =============================================================================

@ rename { target = rs, methodus = "push" }
fn addeExemplar()  void {
    pass
}

main {
    print "verte-braced"
}

Expected output:

verte-braced