Skip to main content

from_apx

Function from_apx 

Source
pub fn from_apx(
    input: &str,
) -> Result<(ValueBasedFramework<String>, Audience), Error>
Expand description

Parse an APX document into (framework, audience) pair.

The resulting framework owns string-typed argument labels (matching the arg(name) identifier in the input). The audience is derived from the valpref facts; if no valpref facts are present, the audience is empty.