pub trait Pattern: Clone + Copy {
// Required method
fn eval(&self, input: &[u8]) -> Option<usize>;
// Provided methods
fn then<P>(self, other: P) -> Sequence<Self, P>
where Self: Sized,
P: Pattern { ... }
fn or<P>(self, other: P) -> Choice<Self, P>
where Self: Sized,
P: Pattern { ... }
}Expand description
Expresses that the implementing type may be used to match a byte slice.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".