pub trait FeatureFlagViewExt<V: 'static> {
    // Required method
    fn observe_flag<T: FeatureFlag, F>(&mut self, callback: F) -> Subscription
       where F: Fn(bool, &mut V, &mut ViewContext<'_, V>) + Send + Sync + 'static;
}

Required Methods§

source

fn observe_flag<T: FeatureFlag, F>(&mut self, callback: F) -> Subscriptionwhere F: Fn(bool, &mut V, &mut ViewContext<'_, V>) + Send + Sync + 'static,

Implementations on Foreign Types§

source§

impl<V> FeatureFlagViewExt<V> for ViewContext<'_, V>where V: 'static + Send + Sync,

source§

fn observe_flag<T: FeatureFlag, F>(&mut self, callback: F) -> Subscriptionwhere F: Fn(bool, &mut V, &mut ViewContext<'_, V>) + Send + Sync + 'static,

Implementors§