Skip to main content

encode_tree_with_codec

Function encode_tree_with_codec 

Source
pub fn encode_tree_with_codec(
    cx: &mut Cx,
    symbol: &Symbol,
    expr: &LocatedExprTree,
    options: EncodeOptions,
) -> Result<Output>
Expand description

Encode a LocatedExprTree with the codec named symbol, reproducing layout and trivia when options request lossless-origin output.