Skip to main content

extract_bind_points

Function extract_bind_points 

Source
pub fn extract_bind_points(value: &str) -> Result<Vec<BindPoint>, String>
Expand description

Extract all bind points from a string.

The text is divided by crate::op_text::pieces: \{ and \} are literal braces, and a brace that opens a quoted map is literal. Each {{ … }} is an inline definition and each { … } group is what classify_group says it is.

Fails when a group is not a bind point (see classify_group). The error quotes the group; a caller that knows the op and field prefixes them.