pub trait MatchLiteral {
    fn is_literal(text: &str) -> Option<&str>;
}
Expand description

Implement this trait to create a matcher for custom literals of operands.

Required Methods

This method is expected to return Some(matching_str) in case of a match of a literal at the beginning of the input and None otherwise.

Implementors