parse_trigger

Function parse_trigger 

Source
pub fn parse_trigger(source: &str) -> Result<TriggerAst, AstError>
Expand description

Parse a single trigger source string; returns the first trigger found.

ยงErrors

Returns an error if the source cannot be parsed or if no trigger is found.