Skip to main content

RecipeMatches

Trait RecipeMatches 

Source
pub trait RecipeMatches<I: RecipeInput>: RecipeData {
    // Required method
    fn matches(&self, input: &I) -> bool;
}
Expand description

Matching behavior implemented by one recipe data type for its input snapshot.

Required Methods§

Source

fn matches(&self, input: &I) -> bool

Returns whether this recipe accepts the provided input.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§