pub trait Pattern<'a>: Debug + Clone {
type Output;
// Required method
fn try_match(&self, input: &'a Term) -> Result<'a, Self::Output>;
// Provided method
fn unmatched(&self, input: &'a Term) -> Unmatch<'a>
where Self: 'static { ... }
}
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.