pub trait Matcher {
type Match<'a>;
// Required method
fn try_match<'a>(array: &'a dyn DynArray) -> Option<Self::Match<'a>>;
// Provided method
fn matches(array: &dyn DynArray) -> bool { ... }
}Expand description
Trait for matching array types.
Required Associated Types§
Required Methods§
Provided Methods§
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.