Skip to main content

object_entries

Function object_entries 

Source
pub fn object_entries(v: &CodeValue) -> impl Iterator<Item = (&str, &CodeValue)>
Expand description

Iterate an Object’s fields as (key, value) pairs, in stored order — the read counterpart to object/object_dyn, for a handler that has to walk every field rather than name one (find_field). A field whose key is not valid UTF-8 is skipped. Not an Object: an empty iterator.