macro_rules! sort_methods {
() => {
fn sort(&self, comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::list::ChangeSet<T>>> {
crate::list::internal::sort(self.change_sets(), Some(comparer), crate::list::SortOptions::None, None, None, 50)
}
fn sort_with(
&self,
comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>,
options: crate::list::SortOptions,
resort: Option<std::rc::Rc<dyn ferroui_system::IObservable<()>>>,
comparer_changed: Option<std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>>>>,
reset_threshold: usize,
) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::list::ChangeSet<T>>> {
crate::list::internal::sort(self.change_sets(), Some(comparer), options, resort, comparer_changed, reset_threshold)
}
fn sort_on_observable(
&self,
comparer_changed: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>>>,
) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::list::ChangeSet<T>>> {
crate::list::internal::sort(self.change_sets(), None, crate::list::SortOptions::None, None, Some(comparer_changed), 50)
}
fn sort_on_observable_with(
&self,
comparer_changed: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>>>,
options: crate::list::SortOptions,
resort: Option<std::rc::Rc<dyn ferroui_system::IObservable<()>>>,
reset_threshold: usize,
) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::list::ChangeSet<T>>> {
crate::list::internal::sort(self.change_sets(), None, options, resort, Some(comparer_changed), reset_threshold)
}
};
}
pub(crate) use sort_methods;