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 shared home for the map_fields(expr, "...") helper shape used by MCP, skill, and codec crates.