Skip to main content

encode_located_tree_frame

Function encode_located_tree_frame 

Source
pub fn encode_located_tree_frame(
    tree: &LocatedExprTree,
    include_origin: bool,
) -> Result<BinaryFrame>
Expand description

Encodes a LocatedExprTree into a BinaryFrame.

When include_origin is set the frame carries the per-node origin tree so that the full located tree round-trips; otherwise only the Expr body is written. The tree is validated before encoding and rejected if malformed.