Skip to main content

read_field_str

Function read_field_str 

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

Convenience: read a string field from an object by name. Returns "" if the field doesn’t exist or isn’t a string.

§Safety

All field pointers must be valid.