pub trait FilterClass<'a, R> {
// Required method
fn instantiate(
&self,
rhs: &str,
) -> Result<Box<dyn Filter<R> + 'a>, FilterError>;
}
Available on crate feature
filter
only.Expand description
An object that can make a Filter
.
An OperatorSet
stores all the possible ways to filter a given type,
but each one can be parameterised by a RHS supplied by the user.
FilterClass
is an object safe trait that allows us to store
these possibilities, and instantiate them into real Filter
objects
when an appropriate RHS is provided.