Skip to main content

find_field

Function find_field 

Source
pub fn find_field<'a>(v: &'a CodeValue, name: &str) -> Option<&'a CodeValue>
Expand description

Read a field by name off an Object value. None if v isn’t an Object or the field doesn’t exist — mirrors code_field’s own permissive-null behavior, but as an Option instead of writing Null.