Function lka_try_encode

Source
pub fn lka_try_encode(
    bytes: impl AsRef<[u8]>,
    options: &str,
    ignore_encoder_err: bool,
    scope: &dyn LkEnv,
) -> LkResult<String>
Expand description

lka_encode with Err on:

  • wrong options
  • no result ( use a /: to fallback to abtxt)
  • if !ignore_encoder_err on any encoder error