Module abe

Source
Expand description

ascii byte expression utilities

ABE is a byte templating language. See guide#ABE for more info. *

Statics§

DEFAULT_POINT_EXPR
default fmt in many cases and output for [point]

Functions§

lka_encode
encode bytes as an abe that evaluate back to bytes.
lka_encode_utf8
encode as utf8 and escape only invalid byte sequences and ‘[’ ‘]’.
lka_eval
Evaluate an expression to bytes.
lka_eval2str
lka_eval and String::from_utf8
lka_eval_strict
Same as lka_eval but accepts bytes outside the range 0x20..0xfe as-is. useful for templating with newlines and utf bytes.
lka_space_expr
lka_try_encode
lka_encode with Err on: