pub struct Filter<E, F> { /* private fields */ }Expand description
Filter evaluator, see EvaluatorExt::filter.
Trait Implementations§
Source§impl<E, F> Evaluator for Filter<E, F>
impl<E, F> Evaluator for Filter<E, F>
Source§fn is_enabled(&self, feature: &str, context: &Context) -> Option<bool>
fn is_enabled(&self, feature: &str, context: &Context) -> Option<bool>
Checks if a feature is enabled in the given context. Read more
Source§fn on_registration(&self)
fn on_registration(&self)
Called when the evaluator is registered. Read more
Source§fn on_new_context(&self, context: ContextRef<'_>, fields: Fields<'_>)
fn on_new_context(&self, context: ContextRef<'_>, fields: Fields<'_>)
Called when a new context is created. Read more
Source§fn on_close_context(&self, context: ContextRef<'_>)
fn on_close_context(&self, context: ContextRef<'_>)
Called when a context is closed. Read more
Source§fn into_ref(self) -> EvaluatorRefwhere
Self: Sized + 'static,
fn into_ref(self) -> EvaluatorRefwhere
Self: Sized + 'static,
Converts the evaluator into an
EvaluatorRef. Read moreAuto Trait Implementations§
impl<E, F> Freeze for Filter<E, F>
impl<E, F> RefUnwindSafe for Filter<E, F>where
F: RefUnwindSafe,
E: RefUnwindSafe,
impl<E, F> Send for Filter<E, F>
impl<E, F> Sync for Filter<E, F>
impl<E, F> Unpin for Filter<E, F>
impl<E, F> UnsafeUnpin for Filter<E, F>where
F: UnsafeUnpin,
E: UnsafeUnpin,
impl<E, F> UnwindSafe for Filter<E, F>where
F: UnwindSafe,
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more