TestFeature

Trait TestFeature 

Source
pub trait TestFeature:
    Send
    + Sync
    + 'static {
    // Required method
    fn is_enabled(&self, context: &Context) -> Option<bool>;
}
Expand description

A trait for types that can determine if a feature is enabled.

Required Methods§

Source

fn is_enabled(&self, context: &Context) -> Option<bool>

Check if the feature is enabled.

Implementations on Foreign Types§

Source§

impl TestFeature for bool

Source§

fn is_enabled(&self, _context: &Context) -> Option<bool>

Source§

impl<T: TestFeature> TestFeature for Option<T>

Source§

fn is_enabled(&self, context: &Context) -> Option<bool>

Implementors§

Source§

impl<F, O> TestFeature for F
where F: Fn(&Context) -> O + Send + Sync + 'static, O: TestFeature,