Return a definition whose scalar is evaluated in the supplied adapter's context.
Caller-supplied expression.
Destination backend; do not capture a different adapter in the parser.
Optionalscope: CacheScope
Quantity's optional cache scope. Forward it unchanged when delegating to a bundled parser so disabled-cache settings are respected.
Optionalscalar: T
When supplied, only the units are needed. A parser can use this scalar directly and skip evaluating the scalar expression.
Custom parser contract for quantities with scalar type T. Return a definition using the adapter passed to
parse; Quantity then validates its scalar, units and absolute-temperature rules. A custom parser need not implement the bundled expression syntax or structured errors.Example