pest

Trait RuleType

Source
pub trait RuleType:
    Copy
    + Debug
    + Eq
    + Hash
    + Ord { }
Expand description

A trait which parser rules must implement.

This trait is set up so that any struct that implements all of its required traits will automatically implement this trait as well.

This is essentially a trait alias. When trait aliases are implemented, this may be replaced by one.

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: Copy + Debug + Eq + Hash + Ord> RuleType for T