as_file_pointer

Function as_file_pointer 

Source
pub fn as_file_pointer(value: &Value) -> Option<&str>
Expand description

A [strings] value that is a file pointer (M12-W3, REQ-MANIFEST-5): a value-position table with EXACTLY one key, file, whose value is a string — e.g. key = { file = "rel/path" }. Returns that relative path. The exactly-one-key rule is the disambiguation (doyle): any OTHER table shape (including one that merely contains a file key alongside others) stays an opaque nested strings tree, so existing nested trees are untouched (back-compat). This single-key table shape IS reserved as the pointer form — a literal { file = … } value cannot double as inline data. The pointer is resolved to the file’s contents lazily at get-string time, never here.