Skip to main content

is_collection

Function is_collection 

Source
pub fn is_collection(value: &Value) -> bool
Expand description

True if value is a first-class collection (list/record) rather than a scalar. Value::Json also carries JSON scalars (numbers/strings/bool/null unwrapped at the value boundary — see json_to_value_no_envelope), so this only matches the two container variants.