pub fn build_layout<'mem, 'facet, F: DiffFlavor>(
diff: &Diff<'mem, 'facet>,
from: Peek<'mem, 'facet>,
to: Peek<'mem, 'facet>,
opts: &BuildOptions,
flavor: &F,
) -> LayoutExpand description
Build a Layout from a Diff.
This is the main entry point for converting a diff into a renderable layout.
§Arguments
diff- The diff to renderfrom- The original “from” value (for looking up unchanged fields)to- The original “to” value (for looking up unchanged fields)opts- Build optionsflavor- The output flavor (Rust, JSON, XML)