Skip to main content

map_entries

Function map_entries 

Source
pub fn map_entries<'a>(
    map: &'a Expr,
    expected: &'static str,
) -> Result<&'a [(Expr, Expr)]>
Expand description

Borrow a map value’s entries, or return a TypeMismatch error labelled with expected. This is the one home for the map_fields(expr, "...") helper that MCP, skill, and codec crates each re-grew.