FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ReactiveNotifyPropertyChangedMixins

    trait · ferroui-reactiveui · v0.5.0

    trait ReactiveNotifyPropertyChangedMixins<T: 'static>
    

    The observation of the properties of an object, with the options of each observation (ReactiveNotifyPropertyChangedMixins); implemented for every Rc<T>.

    View source

    Members

    observable_for_property

    fn observable_for_property<V: Clone + PartialEq + 'static>(self: &Self, path: PropertyPath<Rc<T>, V>, before_change: bool, skip_initial: bool, is_distinct: bool) -> Rc<dyn IObservable<ObservedChange<Rc<T>, V>>>
    

    The changes of the value at the end of path, before or after each change; skip_initial drops the current value, is_distinct drops a value equal to the last one (ObservableForProperty(Expression<Func<TSender, TValue>>, bool, bool, bool)).

    Source

    observable_for_property_skip_initial

    fn observable_for_property_skip_initial<V: Clone + PartialEq + 'static>(self: &Self, path: PropertyPath<Rc<T>, V>, skip_initial: bool) -> Rc<dyn IObservable<ObservedChange<Rc<T>, V>>>
    

    observable_for_property after each change, dropping repeats (ObservableForProperty(Expression<Func<TSender, TValue>>, bool), and with skip_initial set, ObservableForProperty(Expression<Func<TSender, TValue>>)).

    Source

    observable_for_property_named

    fn observable_for_property_named<V: Clone + PartialEq + 'static>(self: &Self, property_name: &str, getter: impl Fn(&Rc<T>) -> V + 'static, before_change: bool, skip_initial: bool, is_distinct: bool) -> Rc<dyn IObservable<ObservedChange<Rc<T>, V>>>
    where T: INotifyPropertyChanged
    

    The changes of the property property_name, read with getter (ObservableForProperty<TValue>(string, bool, bool, bool)).

    Source

    subscribe_to_expression_chain

    fn subscribe_to_expression_chain<V: Clone + PartialEq + 'static>(self: &Self, path: PropertyPath<Rc<T>, V>, before_change: bool, skip_initial: bool, is_distinct: bool) -> Rc<dyn IObservable<ObservedChange<Rc<T>, V>>>
    

    The changes of the value at the end of path, step by step (SubscribeToExpressionChain(Expression?, bool, bool, bool)).

    Source

    subscribe_to_expression_chain_with

    fn subscribe_to_expression_chain_with<V: Clone + PartialEq + 'static>(self: &Self, path: PropertyPath<Rc<T>, V>, before_change: bool, skip_initial: bool, is_distinct: bool, suppress_warnings: bool) -> Rc<dyn IObservable<ObservedChange<Rc<T>, V>>>
    

    subscribe_to_expression_chain that can suppress the warning of a property that cannot notify (SubscribeToExpressionChain(Expression?, bool, bool, bool, bool)).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.