pub fn roller_or_fail<'a>(
    r: &'a str
) -> Result<Roller<'a>, Error<'_, impl RuleType>>
Expand description

A function for safely creating a new Roller without panicking.

Takes a &str input and if the syntax parses, returns a Roller wrapped by a Result. Otherwise returns a ParsingError.

Examples

use rouler::roller_or_fail;