Skip to main content

container_recv_kind

Function container_recv_kind 

Source
pub fn container_recv_kind(node: &AIRNode) -> Option<&str>
Expand description

The receiver-kind annotation value, when it is one of the built-in container categories Optional, Result, Map, or Set.

Returns the tag ("Optional" / "Result" / "Map" / "Set") when the node carries a recv_kind stamp with that exact value, else None. This is the codegen-side reader of the checker→codegen annotation, the disambiguation crux for the overloaded method names that appear on several built-in containers (unwrap/unwrap_or/map on Optional/Result; filter/map/len/contains/to_list across List/Map/Set).