ferroui-dynamic-data 0.3.0

A port of DynamicData for FerroUI: reactive collections, change sets, observable caches and lists with their operators, independent of the user interface
Documentation
//! `Except` (`List/ObservableListEx.Except.cs`): the items of a list that are in none of
//! the others. The forms on collections and observable lists of sources are
//! [`ListSourcesCombineEx`](crate::list::ListSourcesCombineEx) and
//! [`ListSourceListCombineEx`](crate::list::ListSourceListCombineEx).

macro_rules! except_methods {
    () => {
        /// The items of the sequence that are in none of `others`
        /// (`Except(IObservable<IChangeSet<T>>, params IObservable<IChangeSet<T>>[])`).
        /// The sequences are subscribed in order when the result is subscribed; a sequence given
        /// twice is combined once (`Union`). An item is in a list as many times as it was added,
        /// and counts by equality and hash.
        ///
        /// # Panics
        /// When `others` is empty
        /// (`ArgumentException`: "Must be at least one item to combine with").
        fn except(
            &self,
            others: Vec<std::rc::Rc<dyn ferroui_system::IObservable<crate::list::ChangeSet<T>>>>,
        ) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::list::ChangeSet<T>>>
        where
            T: Eq + std::hash::Hash,
        {
            assert!(!others.is_empty(), "Must be at least one item to combine with");
            crate::list::ops::combine::combine_with_others(self.change_sets(), crate::cache::internal::CombineOperator::Except, others)
        }
    };
}
pub(crate) use except_methods;