Function byte_fmt::eval::encode

source ·
pub fn encode(
    ctx: &EvalCtx<impl Scope>,
    bytes: &[u8],
    options: &str,
    ignore_encoder_errors: bool
) -> Result<String, EncodeError>
Expand description

Encode bytes with scopes given as “scope1:{opts}/scope2:{opts}/” :scope/{opts}: e.g. lns:{known}/b64/uint will attempt to encode bytes through locally known lns, otherwise use b64, and finnally attempt uint