pub trait FilterableEnum<Enum> {
type Id;
type Filter: EnumFilter<Self::Id>;
// Required methods
fn filterable_id(&self) -> Self::Id;
fn filter_ref(&self, filter: impl Into<Self::Filter>) -> Option<&Enum>;
fn filter_and_take(self, filter: impl Into<Self::Filter>) -> Option<Enum>;
}
Required Associated Types§
Required Methods§
fn filterable_id(&self) -> Self::Id
fn filter_ref(&self, filter: impl Into<Self::Filter>) -> Option<&Enum>
fn filter_and_take(self, filter: impl Into<Self::Filter>) -> Option<Enum>
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.