Function feature_check::expr::parse
source · [−]pub fn parse(expr: &str) -> Result<Mode, ParseError>
Expand description
Parse a “feature” or “feature op version” expression for later evaluation.
Returns either Mode::Single
or Mode::Simple
.
Errors
Will return an error if the expression is neither a single feature name nor in the “var op value” format or if an unrecognized comparison operator is specified.