//! `Except` (`Cache/ObservableCacheEx.Except.cs`): the items of a cache that are in none of the
//! others. The forms on collections and observable lists of sources are
//! [`CacheSourcesCombineEx`](crate::cache::CacheSourcesCombineEx)
//! and [`CacheSourceListCombineEx`](crate::cache::CacheSourceListCombineEx).
macro_rules! except_methods {
() => {
/// The items of the sequence that are in none of `others`
/// (`Except(IObservable<IChangeSet>, params IObservable<IChangeSet>[])`).
/// The sequences are subscribed in order when the result is subscribed. An item that a
/// sequence gives again as the same object (`T: Deref`) is not updated.
///
/// # Panics
/// When `others` is empty
/// (`ArgumentException`: "At least one additional stream must be supplied").
fn except(
&self,
others: Vec<std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>>,
) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where
T: std::ops::Deref,
{
assert!(!others.is_empty(), "At least one additional stream must be supplied");
crate::cache::ops::combine::combine_with_others(self.change_sets(), crate::cache::internal::CombineOperator::Except, others)
}
};
}
pub(crate) use except_methods;