Skip to main content

fsharp_map_entry_name

Function fsharp_map_entry_name 

Source
pub fn fsharp_map_entry_name(
    ast: &Ast,
    id: Id<TypeNode>,
) -> Result<String, MaterialiseError>
Expand description

The entry class a map<K,V> needs a name for. Structural, exactly as crate::adapter::zig::zig_map_entry_name is, and built from the IDL kind rather than the F# spelling for the reason that function’s documentation gives.

§Errors

MaterialiseError::Unevaluated when a key’s or a value’s tag nests past MAX_TYPE_DEPTH.