Trait MatchOpFn

Source
pub trait MatchOpFn: Clone + Fn(&str, Option<char>) -> Match<Cow<'static, str>> { }
Expand description

Function for OpParser to use to match operators.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> MatchOpFn for T
where T: Clone + Fn(&str, Option<char>) -> Match<Cow<'static, str>>,