ObservableCacheEx
trait · ferroui-dynamic-data · v0.5.0
trait ObservableCacheEx<T: Clone + 'static, K: Eq + Hash + Clone + 'static>
The operators of caches (ObservableCacheEx).
Members
change_setsand_cacheasync_dispose_manyasync_dispose_many_withexceptfull_joinfull_join_with_keyfull_join_manyfull_join_many_with_keyinner_joininner_join_with_keyinner_join_manyinner_join_many_with_keyleft_joinleft_join_with_keyleft_join_manyleft_join_many_with_keyorright_joinright_join_with_keyright_join_manyright_join_many_with_keytransform_asynctransform_async_with_keytransform_async_with_previoustransform_async_with_tokentransform_async_forcedtransform_async_with_key_forcedtransform_async_with_previous_forcedtransform_async_with_token_forcedtransform_async_with_optionstransform_async_with_key_and_optionstransform_async_with_previous_and_optionstransform_async_with_token_and_optionstransform_many_asynctransform_many_async_with_keytransform_many_async_withtransform_many_async_observable_collectiontransform_many_async_observable_collection_with_keytransform_many_async_observable_collection_withtransform_many_async_observable_cachetransform_many_async_observable_cache_with_keytransform_many_async_observable_cache_withtransform_many_safe_asynctransform_many_safe_async_with_keytransform_many_safe_async_withtransform_many_safe_async_observable_collectiontransform_many_safe_async_observable_collection_with_keytransform_many_safe_async_observable_collection_withtransform_many_safe_async_observable_cachetransform_many_safe_async_observable_cache_with_keytransform_many_safe_async_observable_cache_withtransform_safe_asynctransform_safe_async_with_keytransform_safe_async_with_previoustransform_safe_async_with_tokentransform_safe_async_forcedtransform_safe_async_with_key_forcedtransform_safe_async_with_previous_forcedtransform_safe_async_with_token_forcedtransform_safe_async_with_optionstransform_safe_async_with_key_and_optionstransform_safe_async_with_previous_and_optionstransform_safe_async_with_token_and_optionsxoradaptadapt_sortedauto_refreshauto_refresh_withauto_refresh_anyauto_refresh_any_withauto_refresh_on_observableauto_refresh_on_observable_withauto_refresh_on_observable_with_keyauto_refresh_on_observable_with_key_withbatchbatch_onbatch_ifbatch_if_onbatch_if_with_initialbatch_if_with_initial_onbatch_if_with_time_outbatch_if_with_time_out_onbatch_if_with_initial_and_time_outbatch_if_with_initial_and_time_out_onbatch_if_with_timerbatch_if_with_timer_onbatch_if_with_initial_and_timerbatch_if_with_initial_and_timer_onbindbind_with_thresholdbind_with_optionsbind_with_adaptorbind_with_sorted_adaptorbind_read_onlybind_read_only_withbind_read_only_with_optionsbind_read_only_with_adaptorbind_read_only_with_sorted_adaptorbind_to_observable_listbuffer_initialbuffer_initial_oncast_cachechange_keychange_key_with_keyclone_toconvertdefer_until_loadeddispose_manydispose_many_withdistinct_valuesensure_unique_keysexpire_afterexpire_after_onexpire_after_with_pollingexpire_after_with_polling_onfilter_immutablefilter_immutable_withtry_filter_immutabletry_filter_immutable_withfilter_on_observablefilter_on_observable_withfilter_on_observable_with_keyfilter_on_observable_with_key_withflattenfor_each_changegroupgroup_withgroup_with_result_groupsgroup_dynamicgroup_dynamic_withgroup_dynamic_with_keygroup_dynamic_with_key_withgroup_on_observablegroup_on_observable_with_keytry_group_on_observabletry_group_on_observable_with_keygroup_on_propertygroup_on_property_withgroup_on_property_with_ongroup_on_property_with_immutable_stategroup_on_property_with_immutable_state_withgroup_on_property_with_immutable_state_with_ongroup_with_immutable_stategroup_with_immutable_state_withignore_same_reference_updateignore_update_wheninclude_update_wheninvoke_evaluatelimit_size_tomerge_change_setsmerge_change_sets_with_comparermerge_change_sets_ordered_bymerge_change_sets_withmerge_change_sets_manymerge_change_sets_many_withmerge_manymerge_many_with_keymerge_many_change_setsmerge_many_change_sets_with_keymerge_many_change_sets_with_comparermerge_many_change_sets_ordered_bymerge_many_change_sets_withmerge_many_change_sets_with_source_comparermerge_many_change_sets_with_source_comparer_withmerge_many_list_change_setsmerge_many_list_change_sets_with_keymerge_many_list_change_sets_withmerge_many_itemsmerge_many_items_with_keyof_type_cacheof_type_cache_withon_item_addedon_item_added_with_keyon_item_refreshedon_item_refreshed_with_keyon_item_removedon_item_removed_with_keyon_item_removed_withon_item_updatedon_item_updated_with_keypopulate_intopopulate_into_intermediatepopulate_into_lock_freequery_when_changedquery_when_changed_withquery_when_changed_with_triggerref_countremove_keyskip_initialsortsort_withsort_dynamicsort_dynamic_withsort_dynamic_with_resortersort_with_resortersort_and_bindsort_and_bind_withsort_and_bind_by_defaultsort_and_bind_by_default_withsort_and_bind_on_observablesort_and_bind_on_observable_withsort_and_bind_read_onlysort_and_bind_read_only_withsort_and_bind_read_only_by_defaultsort_and_bind_read_only_by_default_withsort_and_bind_read_only_on_observablesort_and_bind_read_only_on_observable_withbind_to_listbind_to_list_withbind_read_only_with_sort_and_bind_optionssort_bysort_by_withstart_with_emptystart_with_itemstart_with_keyed_itemsubscribe_manysubscribe_many_with_keysuppress_refreshto_collectionto_observable_optionalto_observable_optional_with_comparerto_observable_optional_with_initialto_observable_optional_with_initial_and_comparerto_sorted_collectionto_sorted_collection_with_comparertransformtransform_with_keytransform_with_previoustransform_with_refreshtransform_with_key_and_refreshtransform_with_previous_and_refreshtransform_forcedtransform_with_key_forcedtransform_with_previous_forcedtransform_forced_alltransform_with_key_forced_alltransform_with_previous_forced_alltry_transformtry_transform_with_keytry_transform_with_previoustry_transform_with_previous_and_refreshtry_transform_with_previous_forcedtry_transform_with_previous_forced_alltransform_immutabletry_transform_immutabletransform_manytransform_many_observable_cachetransform_many_observable_collectiontransform_on_observabletransform_on_observable_with_keytransform_safetransform_safe_with_keytransform_safe_with_previoustransform_safe_forcedtransform_safe_with_key_forcedtransform_safe_with_previous_forcedtransform_safe_forced_alltransform_safe_with_key_forced_alltransform_safe_with_previous_forced_alltransform_to_treetransform_to_tree_withtransform_with_inline_updatetransform_with_inline_update_withtransform_with_inline_update_safetransform_with_inline_update_safe_withtry_transform_with_inline_updatetry_transform_with_inline_update_withtrue_for_alltrue_for_all_with_itemtrue_for_anytrue_for_any_with_itemsort_and_virtualizesort_and_virtualize_dynamicsort_and_virtualize_withsort_and_virtualize_dynamic_withtopsort_and_pagesort_and_page_dynamicsort_and_page_withsort_and_page_dynamic_withwatchwatch_valuewhen_any_property_changedwhen_property_changedwhen_property_changed_withwhen_value_changedwhen_value_changed_withwhere_reasons_arewhere_reasons_are_notas_observable_cachecollect_update_statsfilterfilter_withfilter_dynamicfilter_dynamic_withfilter_dynamic_reapplyfilter_dynamic_reapply_withfilter_with_statefilter_with_state_withnot_empty
change_sets
fn change_sets(self: &Self) -> Rc<dyn IObservable<ChangeSet<T, K>>>
The sequence as plain change sets (the upcast of a sorted, paged or contextual change set to
IChangeSet<TObject, TKey>).
and_cache
fn and_cache(self: &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
The sequence combined with others: the items that are in every one of them
(And(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").
async_dispose_many
fn async_dispose_many(self: &Self, disposals_completed_accessor: impl Fn(std::rc::Rc<dyn ferroui_system::IObservable<()>>) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: crate::AsAsyncDisposable + PartialEq
Disposes the items that are disposable, at once or by a task, when they are removed or
replaced by an item that is not equal to them, and every item left when the sequence
ends, fails or the subscription is disposed; the change sets are forwarded first.
disposals_completed_accessor receives, once per subscription, a sequence of one value
that ends when the disposals by tasks have all ended, and fails with the error of one
(AsyncDisposeMany(Action<IObservable<Unit>>)).
The items tell how they are disposed through
AsAsyncDisposable; an item for which it gives None is
left alone.
async_dispose_many_with
fn async_dispose_many_with(self: &Self, to_item_disposal: impl Fn(&T) -> Option<crate::ItemDisposal> + 'static, disposals_completed_accessor: impl Fn(std::rc::Rc<dyn ferroui_system::IObservable<()>>) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: PartialEq
async_dispose_many for items that to_item_disposal
tells how to dispose (item is IDisposable, item is IAsyncDisposable).
except
fn except(self: &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
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").
full_join
fn full_join<TR: Clone + 'static, KR: Eq + std::hash::Hash + Clone + 'static, D: Clone + 'static>(self: &Self, right: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<TR, KR>>>, right_key_selector: impl Fn(&TR) -> K + 'static, result_selector: impl Fn(Option<&T>, Option<&TR>) -> D + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, K>>>
The left items and the right items, the right ones keyed by the left key that
right_key_selector maps them to, joined by that key and combined by result_selector
(upstream's Optionals are Options); a result exists while either side has an item
of its key (SQL FULL OUTER JOIN). The selector does not take the key
(FullJoin(IObservable<IChangeSet<TRight, TRightKey>>, Func<TRight, TLeftKey>, Func<Optional<TLeft>, Optional<TRight>, TDestination>)).
full_join_with_key
fn full_join_with_key<TR: Clone + 'static, KR: Eq + std::hash::Hash + Clone + 'static, D: Clone + 'static>(self: &Self, right: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<TR, KR>>>, right_key_selector: impl Fn(&TR) -> K + 'static, result_selector: impl Fn(&K, Option<&T>, Option<&TR>) -> D + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, K>>>
full_join whose selector also takes the key
(FullJoin(IObservable<IChangeSet<TRight, TRightKey>>, Func<TRight, TLeftKey>, Func<TLeftKey, Optional<TLeft>, Optional<TRight>, TDestination>)).
When several right items map to one left key, the latest one is joined.
full_join_many
fn full_join_many<TR: Clone + 'static, KR: Eq + std::hash::Hash + Clone + 'static, D: Clone + 'static>(self: &Self, right: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<TR, KR>>>, right_key_selector: impl Fn(&TR) -> K + 'static, result_selector: impl Fn(Option<&T>, &crate::cache::ImmutableGroup<TR, KR, K>) -> D + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, K>>>
The left items and the groups of the right items, by the left key that
right_key_selector maps them to, joined by that key, an empty group when there is
none, combined by result_selector; a result exists while the left item or the group
does (SQL FULL OUTER JOIN of the grouped right side). The selector does not take the
key (FullJoinMany(IObservable<IChangeSet<TRight, TRightKey>>, Func<TRight, TLeftKey>, Func<Optional<TLeft>, IGrouping<TRight, TRightKey, TLeftKey>, TDestination>)).
full_join_many_with_key
fn full_join_many_with_key<TR: Clone + 'static, KR: Eq + std::hash::Hash + Clone + 'static, D: Clone + 'static>(self: &Self, right: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<TR, KR>>>, right_key_selector: impl Fn(&TR) -> K + 'static, result_selector: impl Fn(&K, Option<&T>, &crate::cache::ImmutableGroup<TR, KR, K>) -> D + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, K>>>
full_join_many whose selector also takes the key
(FullJoinMany(IObservable<IChangeSet<TRight, TRightKey>>, Func<TRight, TLeftKey>, Func<TLeftKey, Optional<TLeft>, IGrouping<TRight, TRightKey, TLeftKey>, TDestination>)).
inner_join
fn inner_join<TR: Clone + 'static, KR: Eq + std::hash::Hash + Clone + 'static, D: Clone + 'static>(self: &Self, right: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<TR, KR>>>, right_key_selector: impl Fn(&TR) -> K + 'static, result_selector: impl Fn(&T, &TR) -> D + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, (K, KR)>>>
The pairs of a left item and a right item whose key right_key_selector maps to the key
of the left item, combined by result_selector, keyed by both keys; a pair exists while
both items do (SQL INNER JOIN). The selector does not take the keys
(InnerJoin(IObservable<IChangeSet<TRight, TRightKey>>, Func<TRight, TLeftKey>, Func<TLeft, TRight, TDestination>)).
inner_join_with_key
fn inner_join_with_key<TR: Clone + 'static, KR: Eq + std::hash::Hash + Clone + 'static, D: Clone + 'static>(self: &Self, right: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<TR, KR>>>, right_key_selector: impl Fn(&TR) -> K + 'static, result_selector: impl Fn(&(K, KR), &T, &TR) -> D + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, (K, KR)>>>
inner_join whose selector also takes the pair of keys, the key of
the result (InnerJoin(IObservable<IChangeSet<TRight, TRightKey>>, Func<TRight, TLeftKey>, Func<(TLeftKey leftKey, TRightKey rightKey), TLeft, TRight, TDestination>)).
A left change pairs the left item with every right item of its key; a right change pairs the right item with the left item of its key, and removes its former pair when its key changed. The left items present at the subscription are joined once the right items arrive, in one change set.
inner_join_many
fn inner_join_many<TR: Clone + 'static, KR: Eq + std::hash::Hash + Clone + 'static, D: Clone + 'static>(self: &Self, right: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<TR, KR>>>, right_key_selector: impl Fn(&TR) -> K + 'static, result_selector: impl Fn(&T, &crate::cache::ImmutableGroup<TR, KR, K>) -> D + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, K>>>
The left items with the group of the right items whose key right_key_selector maps to
their key, combined by result_selector, keyed by the left key; a result exists while
the left item and at least one right item do (SQL INNER JOIN of the grouped right
side). The selector does not take the key
(InnerJoinMany(IObservable<IChangeSet<TRight, TRightKey>>, Func<TRight, TLeftKey>, Func<TLeft, IGrouping<TRight, TRightKey, TLeftKey>, TDestination>)).
inner_join_many_with_key
fn inner_join_many_with_key<TR: Clone + 'static, KR: Eq + std::hash::Hash + Clone + 'static, D: Clone + 'static>(self: &Self, right: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<TR, KR>>>, right_key_selector: impl Fn(&TR) -> K + 'static, result_selector: impl Fn(&K, &T, &crate::cache::ImmutableGroup<TR, KR, K>) -> D + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, K>>>
inner_join_many whose selector also takes the key
(InnerJoinMany(IObservable<IChangeSet<TRight, TRightKey>>, Func<TRight, TLeftKey>, Func<TLeftKey, TLeft, IGrouping<TRight, TRightKey, TLeftKey>, TDestination>)).
left_join
fn left_join<TR: Clone + 'static, KR: Eq + std::hash::Hash + Clone + 'static, D: Clone + 'static>(self: &Self, right: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<TR, KR>>>, right_key_selector: impl Fn(&TR) -> K + 'static, result_selector: impl Fn(&T, Option<&TR>) -> D + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, K>>>
Each left item with the right item whose key right_key_selector maps to its key, if
any (upstream's Optional<TRight> is an Option), combined by result_selector, keyed
by the left key; a result exists while the left item does (SQL LEFT JOIN). The selector
does not take the key (LeftJoin(IObservable<IChangeSet<TRight, TRightKey>>, Func<TRight, TLeftKey>, Func<TLeft, Optional<TRight>, TDestination>)).
left_join_with_key
fn left_join_with_key<TR: Clone + 'static, KR: Eq + std::hash::Hash + Clone + 'static, D: Clone + 'static>(self: &Self, right: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<TR, KR>>>, right_key_selector: impl Fn(&TR) -> K + 'static, result_selector: impl Fn(&K, &T, Option<&TR>) -> D + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, K>>>
left_join whose selector also takes the left key
(LeftJoin(IObservable<IChangeSet<TRight, TRightKey>>, Func<TRight, TLeftKey>, Func<TLeftKey, TLeft, Optional<TRight>, TDestination>)).
When several right items map to one left key, the latest one is joined. The right items present at the subscription are joined as the left items arrive, in one change set.
left_join_many
fn left_join_many<TR: Clone + 'static, KR: Eq + std::hash::Hash + Clone + 'static, D: Clone + 'static>(self: &Self, right: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<TR, KR>>>, right_key_selector: impl Fn(&TR) -> K + 'static, result_selector: impl Fn(&T, &crate::cache::ImmutableGroup<TR, KR, K>) -> D + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, K>>>
Each left item with the group of the right items whose key right_key_selector maps to
its key, an empty group when there is none, combined by result_selector, keyed by the
left key; a result exists while the left item does (SQL LEFT JOIN of the grouped right
side). The selector does not take the key
(LeftJoinMany(IObservable<IChangeSet<TRight, TRightKey>>, Func<TRight, TLeftKey>, Func<TLeft, IGrouping<TRight, TRightKey, TLeftKey>, TDestination>)).
left_join_many_with_key
fn left_join_many_with_key<TR: Clone + 'static, KR: Eq + std::hash::Hash + Clone + 'static, D: Clone + 'static>(self: &Self, right: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<TR, KR>>>, right_key_selector: impl Fn(&TR) -> K + 'static, result_selector: impl Fn(&K, &T, &crate::cache::ImmutableGroup<TR, KR, K>) -> D + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, K>>>
left_join_many whose selector also takes the key
(LeftJoinMany(IObservable<IChangeSet<TRight, TRightKey>>, Func<TRight, TLeftKey>, Func<TLeftKey, TLeft, IGrouping<TRight, TRightKey, TLeftKey>, TDestination>)).
or
fn or(self: &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
The sequence combined with others: the items that are in any of them
(Or(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 given").
right_join
fn right_join<TR: Clone + 'static, KR: Eq + std::hash::Hash + Clone + 'static, D: Clone + 'static>(self: &Self, right: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<TR, KR>>>, right_key_selector: impl Fn(&TR) -> K + 'static, result_selector: impl Fn(Option<&T>, &TR) -> D + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, KR>>>
Each right item with the left item of the key right_key_selector maps it to, if any
(upstream's Optional<TLeft> is an Option), combined by result_selector, keyed by
the right key; a result exists while the right item does (SQL RIGHT JOIN). The
selector does not take the key (RightJoin(IObservable<IChangeSet<TRight, TRightKey>>, Func<TRight, TLeftKey>, Func<Optional<TLeft>, TRight, TDestination>)).
right_join_with_key
fn right_join_with_key<TR: Clone + 'static, KR: Eq + std::hash::Hash + Clone + 'static, D: Clone + 'static>(self: &Self, right: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<TR, KR>>>, right_key_selector: impl Fn(&TR) -> K + 'static, result_selector: impl Fn(&KR, Option<&T>, &TR) -> D + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, KR>>>
right_join whose selector also takes the right key
(RightJoin(IObservable<IChangeSet<TRight, TRightKey>>, Func<TRight, TLeftKey>, Func<TRightKey, Optional<TLeft>, TRight, TDestination>)).
The left items present at the subscription are joined as the right items arrive, in one change set.
right_join_many
fn right_join_many<TR: Clone + 'static, KR: Eq + std::hash::Hash + Clone + 'static, D: Clone + 'static>(self: &Self, right: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<TR, KR>>>, right_key_selector: impl Fn(&TR) -> K + 'static, result_selector: impl Fn(Option<&T>, &crate::cache::ImmutableGroup<TR, KR, K>) -> D + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, K>>>
Each group of the right items, by the left key that right_key_selector maps them to,
with the left item of that key, if any, combined by result_selector, keyed by the left
key; a result exists while the group has items (SQL RIGHT JOIN of the grouped right
side). The selector does not take the key
(RightJoinMany(IObservable<IChangeSet<TRight, TRightKey>>, Func<TRight, TLeftKey>, Func<Optional<TLeft>, IGrouping<TRight, TRightKey, TLeftKey>, TDestination>)).
right_join_many_with_key
fn right_join_many_with_key<TR: Clone + 'static, KR: Eq + std::hash::Hash + Clone + 'static, D: Clone + 'static>(self: &Self, right: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<TR, KR>>>, right_key_selector: impl Fn(&TR) -> K + 'static, result_selector: impl Fn(&K, Option<&T>, &crate::cache::ImmutableGroup<TR, KR, K>) -> D + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, K>>>
right_join_many whose selector also takes the key
(RightJoinMany(IObservable<IChangeSet<TRight, TRightKey>>, Func<TRight, TLeftKey>, Func<TLeftKey, Optional<TLeft>, IGrouping<TRight, TRightKey, TLeftKey>, TDestination>)).
transform_async
fn transform_async<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T) -> Fut + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
Each item in the form the future of transform_factory gives it: an addition or an
update awaits the factory, a removal removes the item, a refresh is forwarded
(TransformAsync(Func<TSource, Task<TDestination>>, IObservable<Func<TSource, TKey, bool>>? forceTransform = null)).
transform_async_with_key
fn transform_async_with_key<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, K) -> Fut + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_async with a factory of the item and its key
(TransformAsync(Func<TSource, TKey, Task<TDestination>>, IObservable<Func<TSource, TKey, bool>>? forceTransform = null)).
transform_async_with_previous
fn transform_async_with_previous<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, Option<T>, K) -> Fut + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_async with a factory of the item, the item it
replaces (for an update) and the key
(TransformAsync(Func<TSource, Optional<TSource>, TKey, Task<TDestination>>, IObservable<Func<TSource, TKey, bool>>? forceTransform = null)).
transform_async_with_token
fn transform_async_with_token<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, Option<T>, K, ferroui_system::threading::CancellationToken) -> Fut + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_async_with_previous whose factory
also takes the token that the disposal of the subscription cancels
(TransformAsync(Func<TSource, Optional<TSource>, TKey, CancellationToken, Task<TDestination>>, IObservable<Func<TSource, TKey, bool>>? forceTransform = null)).
transform_async_forced
fn transform_async_forced<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T) -> Fut + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &K) -> bool>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_async that also transforms again, as updates, the
items that each predicate of force_transform accepts
(TransformAsync(Func<TSource, Task<TDestination>>, IObservable<Func<TSource, TKey, bool>>)).
transform_async_with_key_forced
fn transform_async_with_key_forced<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, K) -> Fut + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &K) -> bool>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_async_with_key with the predicates of
transform_async_forced
(TransformAsync(Func<TSource, TKey, Task<TDestination>>, IObservable<Func<TSource, TKey, bool>>)).
transform_async_with_previous_forced
fn transform_async_with_previous_forced<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, Option<T>, K) -> Fut + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &K) -> bool>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_async_with_previous with the
predicates of transform_async_forced
(TransformAsync(Func<TSource, Optional<TSource>, TKey, Task<TDestination>>, IObservable<Func<TSource, TKey, bool>>)).
transform_async_with_token_forced
fn transform_async_with_token_forced<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, Option<T>, K, ferroui_system::threading::CancellationToken) -> Fut + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &K) -> bool>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_async_with_token with the predicates of
transform_async_forced
(TransformAsync(Func<TSource, Optional<TSource>, TKey, CancellationToken, Task<TDestination>>, IObservable<Func<TSource, TKey, bool>>)).
transform_async_with_options
fn transform_async_with_options<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T) -> Fut + 'static, options: crate::cache::TransformAsyncOptions) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_async with the greatest number of transforms in
flight and the handling of refreshes of options
(TransformAsync(Func<TSource, Task<TDestination>>, TransformAsyncOptions)).
transform_async_with_key_and_options
fn transform_async_with_key_and_options<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, K) -> Fut + 'static, options: crate::cache::TransformAsyncOptions) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_async_with_key with options
(TransformAsync(Func<TSource, TKey, Task<TDestination>>, TransformAsyncOptions)).
transform_async_with_previous_and_options
fn transform_async_with_previous_and_options<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, Option<T>, K) -> Fut + 'static, options: crate::cache::TransformAsyncOptions) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_async_with_previous with options
(TransformAsync(Func<TSource, Optional<TSource>, TKey, Task<TDestination>>, TransformAsyncOptions)).
transform_async_with_token_and_options
fn transform_async_with_token_and_options<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, Option<T>, K, ferroui_system::threading::CancellationToken) -> Fut + 'static, options: crate::cache::TransformAsyncOptions) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_async_with_token with options
(TransformAsync(Func<TSource, Optional<TSource>, TKey, CancellationToken, Task<TDestination>>, TransformAsyncOptions)).
transform_many_async
fn transform_many_async<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, Fut: std::future::Future<Output = Result<Vec<D>, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T) -> Fut + 'static, key_selector: impl Fn(&D) -> DK + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
The items that the future of many_selector gives for each item, keyed by
key_selector
(TransformManyAsync(Func<TSource, Task<IEnumerable<TDestination>>>, Func<TDestination, TDestinationKey>, IEqualityComparer<TDestination>? = null, IComparer<TDestination>? = null)).
transform_many_async_with_key
fn transform_many_async_with_key<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, Fut: std::future::Future<Output = Result<Vec<D>, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T, K) -> Fut + 'static, key_selector: impl Fn(&D) -> DK + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
transform_many_async with a selector of the item and its
key (TransformManyAsync(Func<TSource, TSourceKey, Task<IEnumerable<TDestination>>>, Func<TDestination, TDestinationKey>, ..)).
transform_many_async_with
fn transform_many_async_with<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, Fut: std::future::Future<Output = Result<Vec<D>, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T, K) -> Fut + 'static, key_selector: impl Fn(&D) -> DK + 'static, equality_comparer: Option<std::rc::Rc<dyn Fn(&D, &D) -> bool>>, comparer: Option<std::rc::Rc<dyn Fn(&D, &D) -> std::cmp::Ordering>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
transform_many_async_with_key with the equality
of the children (PartialEq when None) and their comparer
(TransformManyAsync(Func<TSource, TSourceKey, Task<IEnumerable<TDestination>>>, Func<TDestination, TDestinationKey>, IEqualityComparer<TDestination>?, IComparer<TDestination>?)).
transform_many_async_observable_collection
fn transform_many_async_observable_collection<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, C: crate::binding::ObservableCollectionEx<D> + 'static, Fut: std::future::Future<Output = Result<C, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T) -> Fut + 'static, key_selector: impl Fn(&D) -> DK + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
The items of the observable collection that the future of many_selector gives for
each item, keyed by key_selector, followed as the collections change
(TransformManyAsync<.., TCollection>(Func<TSource, Task<TCollection>>, Func<TDestination, TDestinationKey>, IEqualityComparer<TDestination>? = null, IComparer<TDestination>? = null)).
transform_many_async_observable_collection_with_key
fn transform_many_async_observable_collection_with_key<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, C: crate::binding::ObservableCollectionEx<D> + 'static, Fut: std::future::Future<Output = Result<C, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T, K) -> Fut + 'static, key_selector: impl Fn(&D) -> DK + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
transform_many_async_observable_collection
with a selector of the item and its key
(TransformManyAsync<.., TCollection>(Func<TSource, TSourceKey, Task<TCollection>>, Func<TDestination, TDestinationKey>, ..)).
transform_many_async_observable_collection_with
fn transform_many_async_observable_collection_with<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, C: crate::binding::ObservableCollectionEx<D> + 'static, Fut: std::future::Future<Output = Result<C, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T, K) -> Fut + 'static, key_selector: impl Fn(&D) -> DK + 'static, equality_comparer: Option<std::rc::Rc<dyn Fn(&D, &D) -> bool>>, comparer: Option<std::rc::Rc<dyn Fn(&D, &D) -> std::cmp::Ordering>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
transform_many_async_observable_collection_with_key
with the equality of the children (PartialEq when None) and their comparer
(TransformManyAsync<.., TCollection>(Func<TSource, TSourceKey, Task<TCollection>>, Func<TDestination, TDestinationKey>, IEqualityComparer<TDestination>?, IComparer<TDestination>?)).
transform_many_async_observable_cache
fn transform_many_async_observable_cache<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, C: crate::cache::IObservableCache<D, DK> + 'static, Fut: std::future::Future<Output = Result<C, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T) -> Fut + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
The items of the observable cache that the future of many_selector gives for each
item, followed as the caches change
(TransformManyAsync(Func<TSource, Task<IObservableCache<TDestination, TDestinationKey>>>, IEqualityComparer<TDestination>? = null, IComparer<TDestination>? = null)).
transform_many_async_observable_cache_with_key
fn transform_many_async_observable_cache_with_key<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, C: crate::cache::IObservableCache<D, DK> + 'static, Fut: std::future::Future<Output = Result<C, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T, K) -> Fut + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
transform_many_async_observable_cache
with a selector of the item and its key
(TransformManyAsync(Func<TSource, TSourceKey, Task<IObservableCache<TDestination, TDestinationKey>>>, ..)).
transform_many_async_observable_cache_with
fn transform_many_async_observable_cache_with<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, C: crate::cache::IObservableCache<D, DK> + 'static, Fut: std::future::Future<Output = Result<C, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T, K) -> Fut + 'static, equality_comparer: Option<std::rc::Rc<dyn Fn(&D, &D) -> bool>>, comparer: Option<std::rc::Rc<dyn Fn(&D, &D) -> std::cmp::Ordering>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
transform_many_async_observable_cache_with_key
with the equality of the children (PartialEq when None) and their comparer
(TransformManyAsync(Func<TSource, TSourceKey, Task<IObservableCache<TDestination, TDestinationKey>>>, IEqualityComparer<TDestination>?, IComparer<TDestination>?)).
transform_many_safe_async
fn transform_many_safe_async<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, Fut: std::future::Future<Output = Result<Vec<D>, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T) -> Fut + 'static, key_selector: impl Fn(&D) -> DK + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
The items that the future of many_selector gives for each item, keyed by
key_selector
(TransformManySafeAsync(Func<TSource, Task<IEnumerable<TDestination>>>, Func<TDestination, TDestinationKey>, IEqualityComparer<TDestination>? = null, IComparer<TDestination>? = null)).
transform_many_safe_async_with_key
fn transform_many_safe_async_with_key<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, Fut: std::future::Future<Output = Result<Vec<D>, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T, K) -> Fut + 'static, key_selector: impl Fn(&D) -> DK + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
transform_many_safe_async with a selector of the item and its
key (TransformManySafeAsync(Func<TSource, TSourceKey, Task<IEnumerable<TDestination>>>, Func<TDestination, TDestinationKey>, ..)).
transform_many_safe_async_with
fn transform_many_safe_async_with<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, Fut: std::future::Future<Output = Result<Vec<D>, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T, K) -> Fut + 'static, key_selector: impl Fn(&D) -> DK + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, equality_comparer: Option<std::rc::Rc<dyn Fn(&D, &D) -> bool>>, comparer: Option<std::rc::Rc<dyn Fn(&D, &D) -> std::cmp::Ordering>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
transform_many_safe_async_with_key with the equality
of the children (PartialEq when None) and their comparer
(TransformManySafeAsync(Func<TSource, TSourceKey, Task<IEnumerable<TDestination>>>, Func<TDestination, TDestinationKey>, IEqualityComparer<TDestination>?, IComparer<TDestination>?)).
transform_many_safe_async_observable_collection
fn transform_many_safe_async_observable_collection<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, C: crate::binding::ObservableCollectionEx<D> + 'static, Fut: std::future::Future<Output = Result<C, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T) -> Fut + 'static, key_selector: impl Fn(&D) -> DK + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
The items of the observable collection that the future of many_selector gives for
each item, keyed by key_selector, followed as the collections change
(TransformManySafeAsync<.., TCollection>(Func<TSource, Task<TCollection>>, Func<TDestination, TDestinationKey>, IEqualityComparer<TDestination>? = null, IComparer<TDestination>? = null)).
transform_many_safe_async_observable_collection_with_key
fn transform_many_safe_async_observable_collection_with_key<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, C: crate::binding::ObservableCollectionEx<D> + 'static, Fut: std::future::Future<Output = Result<C, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T, K) -> Fut + 'static, key_selector: impl Fn(&D) -> DK + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
transform_many_safe_async_observable_collection
with a selector of the item and its key
(TransformManySafeAsync<.., TCollection>(Func<TSource, TSourceKey, Task<TCollection>>, Func<TDestination, TDestinationKey>, ..)).
transform_many_safe_async_observable_collection_with
fn transform_many_safe_async_observable_collection_with<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, C: crate::binding::ObservableCollectionEx<D> + 'static, Fut: std::future::Future<Output = Result<C, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T, K) -> Fut + 'static, key_selector: impl Fn(&D) -> DK + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, equality_comparer: Option<std::rc::Rc<dyn Fn(&D, &D) -> bool>>, comparer: Option<std::rc::Rc<dyn Fn(&D, &D) -> std::cmp::Ordering>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
transform_many_safe_async_observable_collection_with_key
with the equality of the children (PartialEq when None) and their comparer
(TransformManySafeAsync<.., TCollection>(Func<TSource, TSourceKey, Task<TCollection>>, Func<TDestination, TDestinationKey>, IEqualityComparer<TDestination>?, IComparer<TDestination>?)).
transform_many_safe_async_observable_cache
fn transform_many_safe_async_observable_cache<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, C: crate::cache::IObservableCache<D, DK> + 'static, Fut: std::future::Future<Output = Result<C, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T) -> Fut + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
The items of the observable cache that the future of many_selector gives for each
item, followed as the caches change
(TransformManySafeAsync(Func<TSource, Task<IObservableCache<TDestination, TDestinationKey>>>, IEqualityComparer<TDestination>? = null, IComparer<TDestination>? = null)).
transform_many_safe_async_observable_cache_with_key
fn transform_many_safe_async_observable_cache_with_key<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, C: crate::cache::IObservableCache<D, DK> + 'static, Fut: std::future::Future<Output = Result<C, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T, K) -> Fut + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
transform_many_safe_async_observable_cache
with a selector of the item and its key
(TransformManySafeAsync(Func<TSource, TSourceKey, Task<IObservableCache<TDestination, TDestinationKey>>>, ..)).
transform_many_safe_async_observable_cache_with
fn transform_many_safe_async_observable_cache_with<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static, C: crate::cache::IObservableCache<D, DK> + 'static, Fut: std::future::Future<Output = Result<C, ferroui_system::ObservableError>> + 'static>(self: &Self, many_selector: impl Fn(T, K) -> Fut + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, equality_comparer: Option<std::rc::Rc<dyn Fn(&D, &D) -> bool>>, comparer: Option<std::rc::Rc<dyn Fn(&D, &D) -> std::cmp::Ordering>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
transform_many_safe_async_observable_cache_with_key
with the equality of the children (PartialEq when None) and their comparer
(TransformManySafeAsync(Func<TSource, TSourceKey, Task<IObservableCache<TDestination, TDestinationKey>>>, IEqualityComparer<TDestination>?, IComparer<TDestination>?)).
transform_safe_async
fn transform_safe_async<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T) -> Fut + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
Each item in the form the future of transform_factory gives it: an addition or an
update awaits the factory, a removal removes the item, a refresh is forwarded
(TransformSafeAsync(Func<TSource, Task<TDestination>>, IObservable<Func<TSource, TKey, bool>>? forceTransform = null)).
transform_safe_async_with_key
fn transform_safe_async_with_key<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, K) -> Fut + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe_async with a factory of the item and its key
(TransformSafeAsync(Func<TSource, TKey, Task<TDestination>>, IObservable<Func<TSource, TKey, bool>>? forceTransform = null)).
transform_safe_async_with_previous
fn transform_safe_async_with_previous<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, Option<T>, K) -> Fut + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe_async with a factory of the item, the item it
replaces (for an update) and the key
(TransformSafeAsync(Func<TSource, Optional<TSource>, TKey, Task<TDestination>>, IObservable<Func<TSource, TKey, bool>>? forceTransform = null)).
transform_safe_async_with_token
fn transform_safe_async_with_token<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, Option<T>, K, ferroui_system::threading::CancellationToken) -> Fut + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe_async_with_previous whose factory
also takes the token that the disposal of the subscription cancels
(TransformSafeAsync(Func<TSource, Optional<TSource>, TKey, CancellationToken, Task<TDestination>>, IObservable<Func<TSource, TKey, bool>>? forceTransform = null)).
transform_safe_async_forced
fn transform_safe_async_forced<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T) -> Fut + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &K) -> bool>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe_async that also transforms again, as updates, the
items that each predicate of force_transform accepts
(TransformSafeAsync(Func<TSource, Task<TDestination>>, IObservable<Func<TSource, TKey, bool>>)).
transform_safe_async_with_key_forced
fn transform_safe_async_with_key_forced<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, K) -> Fut + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &K) -> bool>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe_async_with_key with the predicates of
transform_safe_async_forced
(TransformSafeAsync(Func<TSource, TKey, Task<TDestination>>, IObservable<Func<TSource, TKey, bool>>)).
transform_safe_async_with_previous_forced
fn transform_safe_async_with_previous_forced<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, Option<T>, K) -> Fut + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &K) -> bool>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe_async_with_previous with the
predicates of transform_safe_async_forced
(TransformSafeAsync(Func<TSource, Optional<TSource>, TKey, Task<TDestination>>, IObservable<Func<TSource, TKey, bool>>)).
transform_safe_async_with_token_forced
fn transform_safe_async_with_token_forced<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, Option<T>, K, ferroui_system::threading::CancellationToken) -> Fut + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &K) -> bool>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe_async_with_token with the predicates of
transform_safe_async_forced
(TransformSafeAsync(Func<TSource, Optional<TSource>, TKey, CancellationToken, Task<TDestination>>, IObservable<Func<TSource, TKey, bool>>)).
transform_safe_async_with_options
fn transform_safe_async_with_options<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T) -> Fut + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, options: crate::cache::TransformAsyncOptions) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe_async with the greatest number of transforms in
flight and the handling of refreshes of options
(TransformSafeAsync(Func<TSource, Task<TDestination>>, TransformAsyncOptions)).
transform_safe_async_with_key_and_options
fn transform_safe_async_with_key_and_options<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, K) -> Fut + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, options: crate::cache::TransformAsyncOptions) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe_async_with_key with options
(TransformSafeAsync(Func<TSource, TKey, Task<TDestination>>, TransformAsyncOptions)).
transform_safe_async_with_previous_and_options
fn transform_safe_async_with_previous_and_options<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, Option<T>, K) -> Fut + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, options: crate::cache::TransformAsyncOptions) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe_async_with_previous with options
(TransformSafeAsync(Func<TSource, Optional<TSource>, TKey, Task<TDestination>>, TransformAsyncOptions)).
transform_safe_async_with_token_and_options
fn transform_safe_async_with_token_and_options<U: Clone + 'static, Fut: std::future::Future<Output = Result<U, ferroui_system::ObservableError>> + 'static>(self: &Self, transform_factory: impl Fn(T, Option<T>, K, ferroui_system::threading::CancellationToken) -> Fut + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, options: crate::cache::TransformAsyncOptions) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe_async_with_token with options
(TransformSafeAsync(Func<TSource, Optional<TSource>, TKey, CancellationToken, Task<TDestination>>, TransformAsyncOptions)).
xor
fn xor(self: &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
The sequence combined with others: the items that are in exactly one of them
(Xor(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 given").
adapt
fn adapt(self: &Self, adaptor: std::rc::Rc<dyn crate::cache::IChangeSetAdaptor<T, K>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
Hands each change set to adaptor as it passes (Adapt(IChangeSetAdaptor<TObject, TKey>)).
adapt_sorted
fn adapt_sorted(self: &Self, adaptor: std::rc::Rc<dyn crate::cache::ISortedChangeSetAdaptor<T, K>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where Self: Sized + 'static
Hands each sorted change set to adaptor as it passes
(Adapt(ISortedChangeSetAdaptor<TObject, TKey>) of a sorted source), as plain change
sets.
Panics
When the source is not a sequence of sorted change sets.
auto_refresh
fn auto_refresh<P: crate::binding::IntoPropertyChain<T>>(self: &Self, property_accessor: P) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where <P as >::Value: 'static
The changes, with a refresh of an item whenever the property of property_accessor
changes on it, so that the operators downstream evaluate it again
(AutoRefresh(Expression<Func<TObject, TProperty>>)).
The path observes its own steps, so the items need not be INotifyPropertyChanged
themselves (upstream's constraint TObject : INotifyPropertyChanged).
auto_refresh_with
fn auto_refresh_with<P: crate::binding::IntoPropertyChain<T>>(self: &Self, property_accessor: P, change_set_buffer: Option<std::time::Duration>, property_change_throttle: Option<std::time::Duration>, scheduler: Option<std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where <P as >::Value: 'static
auto_refresh that gathers the refreshes of each
change_set_buffer into one change set and throttles the changes of the property of
each item by property_change_throttle, on scheduler
(AutoRefresh(Expression<Func<TObject, TProperty>>, TimeSpan? changeSetBuffer, TimeSpan? propertyChangeThrottle, IScheduler? scheduler)).
auto_refresh_any
fn auto_refresh_any(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: crate::binding::NotifyPropertyChangedEx
The changes, with a refresh of an item whenever any of its properties changes
(AutoRefresh(); the overloads of upstream share the name AutoRefresh).
auto_refresh_any_with
fn auto_refresh_any_with(self: &Self, change_set_buffer: Option<std::time::Duration>, property_change_throttle: Option<std::time::Duration>, scheduler: Option<std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: crate::binding::NotifyPropertyChangedEx
auto_refresh_any that gathers the refreshes of each
change_set_buffer into one change set and throttles the changes of the properties of
each item by property_change_throttle, on scheduler
(AutoRefresh(TimeSpan? changeSetBuffer, TimeSpan? propertyChangeThrottle, IScheduler? scheduler)).
auto_refresh_on_observable
fn auto_refresh_on_observable<A: 'static>(self: &Self, reevaluator: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<A>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The changes, with a refresh of an item whenever the sequence reevaluator makes for it
produces a value, so that the operators downstream evaluate it again
(AutoRefreshOnObservable(Func<TObject, IObservable<TAny>>)).
auto_refresh_on_observable_with
fn auto_refresh_on_observable_with<A: 'static>(self: &Self, reevaluator: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<A>> + 'static, change_set_buffer: Option<std::time::Duration>, scheduler: Option<std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
auto_refresh_on_observable that gathers the
refreshes of each change_set_buffer into one change set, on scheduler
(AutoRefreshOnObservable(Func<TObject, IObservable<TAny>>, TimeSpan? changeSetBuffer, IScheduler? scheduler)).
auto_refresh_on_observable_with_key
fn auto_refresh_on_observable_with_key<A: 'static>(self: &Self, reevaluator: impl Fn(&T, &K) -> std::rc::Rc<dyn ferroui_system::IObservable<A>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
auto_refresh_on_observable with a reevaluator
that is given the key (AutoRefreshOnObservable(Func<TObject, TKey, IObservable<TAny>>)).
auto_refresh_on_observable_with_key_with
fn auto_refresh_on_observable_with_key_with<A: 'static>(self: &Self, reevaluator: impl Fn(&T, &K) -> std::rc::Rc<dyn ferroui_system::IObservable<A>> + 'static, change_set_buffer: Option<std::time::Duration>, scheduler: Option<std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
auto_refresh_on_observable_with_key that
gathers the refreshes of each change_set_buffer into one change set, on scheduler
(AutoRefreshOnObservable(Func<TObject, TKey, IObservable<TAny>>, TimeSpan?, IScheduler?)).
batch
fn batch(self: &Self, time_span: std::time::Duration) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The change sets of each time_span, as one change set; the windows without change sets
are left out (Batch(TimeSpan, IScheduler? = null), on the default scheduler).
batch_on
fn batch_on(self: &Self, time_span: std::time::Duration, scheduler: std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
batch on scheduler (Batch(TimeSpan, IScheduler)).
batch_if
fn batch_if(self: &Self, pause_if_true_selector: std::rc::Rc<dyn ferroui_system::IObservable<bool>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The change sets, held back while pause_if_true_selector last gave true and delivered
as one when it gives false (BatchIf(IObservable<bool>)).
batch_if_on
fn batch_if_on(self: &Self, pause_if_true_selector: std::rc::Rc<dyn ferroui_system::IObservable<bool>>, scheduler: std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
batch_if with the timers on scheduler (BatchIf(IObservable<bool>, IScheduler?)).
batch_if_with_initial
fn batch_if_with_initial(self: &Self, pause_if_true_selector: std::rc::Rc<dyn ferroui_system::IObservable<bool>>, initial_pause_state: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
batch_if, paused from the start when initial_pause_state is true
(BatchIf(IObservable<bool>, bool, IScheduler? = null)).
batch_if_with_initial_on
fn batch_if_with_initial_on(self: &Self, pause_if_true_selector: std::rc::Rc<dyn ferroui_system::IObservable<bool>>, initial_pause_state: bool, scheduler: std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
batch_if_with_initial on scheduler.
batch_if_with_time_out
fn batch_if_with_time_out(self: &Self, pause_if_true_selector: std::rc::Rc<dyn ferroui_system::IObservable<bool>>, time_out: Option<std::time::Duration>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
batch_if whose pause ends by itself after time_out
(BatchIf(IObservable<bool>, TimeSpan?, IScheduler? = null)).
batch_if_with_time_out_on
fn batch_if_with_time_out_on(self: &Self, pause_if_true_selector: std::rc::Rc<dyn ferroui_system::IObservable<bool>>, time_out: Option<std::time::Duration>, scheduler: std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
batch_if_with_time_out on scheduler.
batch_if_with_initial_and_time_out
fn batch_if_with_initial_and_time_out(self: &Self, pause_if_true_selector: std::rc::Rc<dyn ferroui_system::IObservable<bool>>, initial_pause_state: bool, time_out: Option<std::time::Duration>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
batch_if_with_time_out, paused from the start when
initial_pause_state is true (BatchIf(IObservable<bool>, bool, TimeSpan?, IScheduler? = null)).
batch_if_with_initial_and_time_out_on
fn batch_if_with_initial_and_time_out_on(self: &Self, pause_if_true_selector: std::rc::Rc<dyn ferroui_system::IObservable<bool>>, initial_pause_state: bool, time_out: Option<std::time::Duration>, scheduler: std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
batch_if_with_initial_and_time_out on
scheduler.
batch_if_with_timer
fn batch_if_with_timer(self: &Self, pause_if_true_selector: std::rc::Rc<dyn ferroui_system::IObservable<bool>>, timer: Option<std::rc::Rc<dyn ferroui_system::IObservable<()>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
batch_if that also delivers, and pauses again, at each value of
timer; the pause ends when timer ends (BatchIf(IObservable<bool>, IScheduler?, IObservable<Unit>?)).
batch_if_with_timer_on
fn batch_if_with_timer_on(self: &Self, pause_if_true_selector: std::rc::Rc<dyn ferroui_system::IObservable<bool>>, timer: Option<std::rc::Rc<dyn ferroui_system::IObservable<()>>>, scheduler: std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
batch_if_with_timer on scheduler.
batch_if_with_initial_and_timer
fn batch_if_with_initial_and_timer(self: &Self, pause_if_true_selector: std::rc::Rc<dyn ferroui_system::IObservable<bool>>, initial_pause_state: bool, timer: Option<std::rc::Rc<dyn ferroui_system::IObservable<()>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
batch_if_with_timer, paused from the start when
initial_pause_state is true (BatchIf(IObservable<bool>, bool, IObservable<Unit>?, IScheduler? = null)).
batch_if_with_initial_and_timer_on
fn batch_if_with_initial_and_timer_on(self: &Self, pause_if_true_selector: std::rc::Rc<dyn ferroui_system::IObservable<bool>>, initial_pause_state: bool, timer: Option<std::rc::Rc<dyn ferroui_system::IObservable<()>>>, scheduler: std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
batch_if_with_initial_and_timer on scheduler.
bind
fn bind<C: crate::binding::IObservableCollection<T> + Clone + 'static>(self: &Self, destination: &C) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: PartialEq,
Self: Sized + 'static
Applies the change sets to destination with the default options
(Bind(IObservableCollection<TObject>, int refreshThreshold = 25), and
Bind(IObservableCollection<TObject>) of a sorted source).
bind_with_threshold
fn bind_with_threshold<C: crate::binding::IObservableCollection<T> + Clone + 'static>(self: &Self, destination: &C, refresh_threshold: usize) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: PartialEq
bind with a threshold of changes above which the collection is loaded
again with a reset (Bind(IObservableCollection<TObject>, int refreshThreshold)); it
binds as a plain source, as upstream's only form with a threshold does.
bind_with_options
fn bind_with_options<C: crate::binding::IObservableCollection<T> + Clone + 'static>(self: &Self, destination: &C, options: crate::binding::BindingOptions) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: PartialEq,
Self: Sized + 'static
bind with options (Bind(IObservableCollection<TObject>, BindingOptions)).
bind_with_adaptor
fn bind_with_adaptor<C: crate::binding::IObservableCollection<T> + Clone + 'static>(self: &Self, destination: &C, updater: std::rc::Rc<dyn crate::binding::IObservableCollectionAdaptor<T, K>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: PartialEq
Applies the change sets to destination through updater
(Bind(IObservableCollection<TObject>, IObservableCollectionAdaptor<TObject, TKey>)).
bind_with_sorted_adaptor
fn bind_with_sorted_adaptor<C: crate::binding::IObservableCollection<T> + Clone + 'static>(self: &Self, destination: &C, updater: std::rc::Rc<dyn crate::binding::ISortedObservableCollectionAdaptor<T, K>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: PartialEq,
Self: Sized + 'static
Applies the sorted change sets to destination through updater
(Bind(IObservableCollection<TObject>, ISortedObservableCollectionAdaptor<TObject, TKey>)).
Panics
When the source is not a sequence of sorted change sets.
bind_read_only
fn bind_read_only(self: &Self) -> (std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>, crate::binding::ReadOnlyObservableCollection<T>)
where T: PartialEq,
Self: Sized + 'static
Applies the change sets to a new collection, returned as a read-only view
(Bind(out ReadOnlyObservableCollection<TObject>, int resetThreshold = 25, bool useReplaceForUpdates = true, adaptor = null), and its sorted form).
The results of SortAndPage and SortAndVirtualize are bound sorted by the comparer of
their context (Bind(out ReadOnlyObservableCollection<TObject>) of
IChangeSet<TObject, TKey, PageContext<TObject>>, BindPaged).
bind_read_only_with
fn bind_read_only_with(self: &Self, reset_threshold: usize, use_replace_for_updates: bool) -> (std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>, crate::binding::ReadOnlyObservableCollection<T>)
where T: PartialEq,
Self: Sized + 'static
bind_read_only with a threshold and the choice of
replacements (Bind(out ReadOnlyObservableCollection<TObject>, int, bool)).
bind_read_only_with_options
fn bind_read_only_with_options(self: &Self, options: crate::binding::BindingOptions) -> (std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>, crate::binding::ReadOnlyObservableCollection<T>)
where T: PartialEq,
Self: Sized + 'static
bind_read_only with options
(Bind(out ReadOnlyObservableCollection<TObject>, BindingOptions)).
bind_read_only_with_adaptor
fn bind_read_only_with_adaptor(self: &Self, adaptor: std::rc::Rc<dyn crate::binding::IObservableCollectionAdaptor<T, K>>) -> (std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>, crate::binding::ReadOnlyObservableCollection<T>)
where T: PartialEq
bind_read_only through adaptor
(Bind(out ReadOnlyObservableCollection<TObject>, .., IObservableCollectionAdaptor<TObject, TKey>)).
bind_read_only_with_sorted_adaptor
fn bind_read_only_with_sorted_adaptor(self: &Self, adaptor: std::rc::Rc<dyn crate::binding::ISortedObservableCollectionAdaptor<T, K>>) -> (std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>, crate::binding::ReadOnlyObservableCollection<T>)
where T: PartialEq,
Self: Sized + 'static
bind_read_only of a sorted source through adaptor
(Bind(out ReadOnlyObservableCollection<TObject>, .., ISortedObservableCollectionAdaptor<TObject, TKey>)).
Panics
When the source is not a sequence of sorted change sets.
bind_to_observable_list
fn bind_to_observable_list(self: &Self) -> (std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>, std::rc::Rc<dyn crate::list::IObservableList<T>>)
where T: PartialEq,
Self: Sized + 'static
Fills a new observable list with the items, without their keys, as the change sets
pass; the list is disposed when the sequence ends (BindToObservableList(out IObservableList<TObject>), and its form for a sorted source, which keeps the order of
the sort).
buffer_initial
fn buffer_initial(self: &Self, initial_buffer: std::time::Duration) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The change sets of the first initial_buffer after the first one, as one change set,
then the change sets as they come (BufferInitial(TimeSpan, IScheduler? = null), on the
default scheduler).
buffer_initial_on
fn buffer_initial_on(self: &Self, initial_buffer: std::time::Duration, scheduler: std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
buffer_initial on scheduler (BufferInitial(TimeSpan, IScheduler)).
cast_cache
fn cast_cache<U: Clone + 'static>(self: &Self, converter: impl Fn(&T) -> U + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
The change sets with each item converted by converter
(Cast(Func<TSource, TDestination>); named cast_cache beside ObservableExt::cast).
change_key
fn change_key<K2: Eq + std::hash::Hash + Clone + 'static>(self: &Self, key_selector: impl Fn(&T) -> K2 + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K2>>>
The changes keyed by key_selector of the item (ChangeKey(Func<TObject, TDestinationKey>)); the indexes are dropped, as upstream's are.
change_key_with_key
fn change_key_with_key<K2: Eq + std::hash::Hash + Clone + 'static>(self: &Self, key_selector: impl Fn(&K, &T) -> K2 + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K2>>>
The changes keyed by key_selector of the key and the item (ChangeKey(Func<TSourceKey, TObject, TDestinationKey>)).
clone_to
fn clone_to(self: &Self, target: std::rc::Rc<std::cell::RefCell<Vec<T>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: PartialEq
The change sets, applied to target as they pass: an addition adds the item, an update
replaces the previous item by it, and a removal removes it (Clone(ICollection<TObject>);
named clone_to beside Clone::clone).
convert
fn convert<U: Clone + 'static>(self: &Self, conversion_factory: impl Fn(&T) -> U + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
The change sets with each item, and each previous item, converted by
conversion_factory (Convert(Func<TObject, TDestination>)).
defer_until_loaded
fn defer_until_loaded(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The change sets from the first one; empty change sets are left out
(DeferUntilLoaded(IObservable<IChangeSet>)).
dispose_many
fn dispose_many(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: crate::AsDisposable
Disposes each item when it is removed or replaced (by another item), and every item left
when the subscription ends; the change sets are forwarded first (DisposeMany).
The items are disposables through AsDisposable; an item for
which it gives None is left alone, as upstream leaves an item that is not an
IDisposable.
dispose_many_with
fn dispose_many_with(self: &Self, to_disposable: impl Fn(&T) -> Option<std::rc::Rc<dyn ferroui_system::IDisposable>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
dispose_many for items that to_disposable makes disposables of
(item as IDisposable).
distinct_values
fn distinct_values<V: Eq + std::hash::Hash + Clone + 'static>(self: &Self, value_selector: impl Fn(&T) -> V + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::DistinctChangeSet<V>>>
The distinct values that value_selector gives for the items, as the changes of a cache
keyed by the values (DistinctValues(Func<TObject, TValue>)).
ensure_unique_keys
fn ensure_unique_keys(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The change sets with one change per key, the changes of a key within a change set
combined; moves are left out (EnsureUniqueKeys).
expire_after
fn expire_after(self: &Self, time_selector: impl Fn(&T) -> Option<std::time::Duration> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The items, each removed once the time that time_selector gives for it has passed
(None: never), timed on the default scheduler; the sequence ends once the source has and
no expiration is pending (ExpireAfter(Func<TObject, TimeSpan?>)).
expire_after_on
fn expire_after_on(self: &Self, time_selector: impl Fn(&T) -> Option<std::time::Duration> + 'static, scheduler: std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
expire_after on scheduler (ExpireAfter(.., IScheduler)).
expire_after_with_polling
fn expire_after_with_polling(self: &Self, time_selector: impl Fn(&T) -> Option<std::time::Duration> + 'static, polling_interval: Option<std::time::Duration>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
expire_after that removes the expired items every
polling_interval rather than at their times (ExpireAfter(.., TimeSpan?)).
expire_after_with_polling_on
fn expire_after_with_polling_on(self: &Self, time_selector: impl Fn(&T) -> Option<std::time::Duration> + 'static, polling_interval: Option<std::time::Duration>, scheduler: std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
expire_after_with_polling on scheduler
(ExpireAfter(.., TimeSpan?, IScheduler)).
filter_immutable
fn filter_immutable(self: &Self, predicate: impl Fn(&T) -> bool + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The items that predicate accepts, for items that never change: faster than
filter, as nothing is cached; an update is evaluated by both of its
items, a refresh is not evaluated again, and moves and indexes are dropped
(FilterImmutable(Func<TObject, bool>, bool suppressEmptyChangeSets = true)).
filter_immutable_with
fn filter_immutable_with(self: &Self, predicate: impl Fn(&T) -> bool + 'static, suppress_empty_change_sets: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
filter_immutable that keeps the empty change sets when
suppress_empty_change_sets is false (FilterImmutable(Func<TObject, bool>, bool)).
try_filter_immutable
fn try_filter_immutable(self: &Self, predicate: impl Fn(&T) -> Result<bool, ferroui_system::ObservableError> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
filter_immutable with a predicate that may fail: a failure
ends the sequence with its error (upstream catches the exception of the predicate).
try_filter_immutable_with
fn try_filter_immutable_with(self: &Self, predicate: impl Fn(&T) -> Result<bool, ferroui_system::ObservableError> + 'static, suppress_empty_change_sets: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
try_filter_immutable that keeps the empty change sets
when suppress_empty_change_sets is false.
filter_on_observable
fn filter_on_observable(self: &Self, filter_factory: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<bool>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The items whose sequence of filter_factory produced true last; an item is excluded
until its sequence produces a value (FilterOnObservable(Func<TObject, IObservable<bool>>)).
filter_on_observable_with
fn filter_on_observable_with(self: &Self, filter_factory: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<bool>> + 'static, buffer: Option<std::time::Duration>, scheduler: Option<std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
filter_on_observable that gathers the changes of the
filters of each buffer into one change set, on scheduler
(FilterOnObservable(Func<TObject, IObservable<bool>>, TimeSpan? buffer, IScheduler? scheduler)).
filter_on_observable_with_key
fn filter_on_observable_with_key(self: &Self, filter_factory: impl Fn(&T, &K) -> std::rc::Rc<dyn ferroui_system::IObservable<bool>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
filter_on_observable with a factory that is given the
key (FilterOnObservable(Func<TObject, TKey, IObservable<bool>>)).
filter_on_observable_with_key_with
fn filter_on_observable_with_key_with(self: &Self, filter_factory: impl Fn(&T, &K) -> std::rc::Rc<dyn ferroui_system::IObservable<bool>> + 'static, buffer: Option<std::time::Duration>, scheduler: Option<std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
filter_on_observable_with_key that gathers the
changes of the filters of each buffer into one change set, on scheduler
(FilterOnObservable(Func<TObject, TKey, IObservable<bool>>, TimeSpan?, IScheduler?)).
flatten
fn flatten(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::Change<T, K>>>
The changes of the change sets, one at a time (Flatten).
for_each_change
fn for_each_change(self: &Self, action: impl Fn(&crate::cache::Change<T, K>) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
Runs action for each change, before the change set is forwarded
(ForEachChange(Action<Change<TObject, TKey>>)).
group
fn group<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, group_selector_key: impl Fn(&T) -> G + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::GroupChangeSet<T, K, G>>>
The items grouped by the key group_selector_key selects: a change set of groups, each
with the cache of its items; an update or a refresh evaluates the group of the item again
(Group(Func<TObject, TGroupKey>)).
group_with
fn group_with<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, group_selector_key: impl Fn(&T) -> G + 'static, regrouper: std::rc::Rc<dyn ferroui_system::IObservable<()>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::GroupChangeSet<T, K, G>>>
group that evaluates the group of every item again when regrouper
produces a value (Group(Func<TObject, TGroupKey>, IObservable<Unit>)).
group_with_result_groups
fn group_with_result_groups<G: Eq + std::hash::Hash + Clone + 'static, C: crate::cache::IChangeSet<G, G>>(self: &Self, group_selector: impl Fn(&T) -> G + 'static, result_group_source: std::rc::Rc<dyn ferroui_system::IObservable<C>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::GroupChangeSet<T, K, G>>>
The groups of the keys of result_group_source (a change set whose items are their own
keys, as distinct_values gives), each with the items whose key group_selector
selects: a group exists while its key does, even without items
(Group(Func<TObject, TGroupKey>, IObservable<IDistinctChangeSet<TGroupKey>>)).
group_dynamic
fn group_dynamic<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, group_selector_key_observable: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T) -> G>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::GroupChangeSet<T, K, G>>>
The items grouped by the latest selector of group_selector_key_observable: nothing is
grouped until the first selector, and each new one evaluates the group of every item
again (Group(IObservable<Func<TObject, TGroupKey>>, IObservable<Unit>? regrouper = null)).
group_dynamic_with
fn group_dynamic_with<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, group_selector_key_observable: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T) -> G>>>, regrouper: std::rc::Rc<dyn ferroui_system::IObservable<()>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::GroupChangeSet<T, K, G>>>
group_dynamic that evaluates the group of every item again when
regrouper produces a value (Group(IObservable<Func<TObject, TGroupKey>>, IObservable<Unit>)).
group_dynamic_with_key
fn group_dynamic_with_key<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, group_selector_key_observable: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &K) -> G>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::GroupChangeSet<T, K, G>>>
group_dynamic with selectors of the item and its key
(Group(IObservable<Func<TObject, TKey, TGroupKey>>, IObservable<Unit>? regrouper = null)).
group_dynamic_with_key_with
fn group_dynamic_with_key_with<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, group_selector_key_observable: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &K) -> G>>>, regrouper: std::rc::Rc<dyn ferroui_system::IObservable<()>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::GroupChangeSet<T, K, G>>>
group_dynamic_with_key that evaluates the group of
every item again when regrouper produces a value
(Group(IObservable<Func<TObject, TKey, TGroupKey>>, IObservable<Unit>)).
group_on_observable
fn group_on_observable<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, group_observable_selector: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<G>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::GroupChangeSet<T, K, G>>>
The items grouped by the latest value of the sequence of group keys that
group_observable_selector gives for each item; the result ends when the source and
every sequence of group keys have ended
(GroupOnObservable(Func<TObject, IObservable<TGroupKey>>)).
group_on_observable_with_key
fn group_on_observable_with_key<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, group_observable_selector: impl Fn(&T, &K) -> std::rc::Rc<dyn ferroui_system::IObservable<G>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::GroupChangeSet<T, K, G>>>
group_on_observable with a selector of the item and its
key (GroupOnObservable(Func<TObject, TKey, IObservable<TGroupKey>>)).
try_group_on_observable
fn try_group_on_observable<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, group_observable_selector: impl Fn(&T) -> Result<std::rc::Rc<dyn ferroui_system::IObservable<G>>, ferroui_system::ObservableError> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::GroupChangeSet<T, K, G>>>
group_on_observable with a selector that may fail; a
failure ends the result with its error (GroupOnObservable with a selector that
throws).
try_group_on_observable_with_key
fn try_group_on_observable_with_key<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, group_observable_selector: impl Fn(&T, &K) -> Result<std::rc::Rc<dyn ferroui_system::IObservable<G>>, ferroui_system::ObservableError> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::GroupChangeSet<T, K, G>>>
group_on_observable_with_key with a selector that
may fail; a failure ends the result with its error.
group_on_property
fn group_on_property<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, property_selector: ferroui_system::component_model::PropertyPath<T, G>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::GroupChangeSet<T, K, G>>>
The items grouped by the value of the property property_selector, which is evaluated
again when the property changes on an item (GroupOnProperty(Expression<Func<TObject, TGroupKey>>)).
group_on_property_with
fn group_on_property_with<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, property_selector: ferroui_system::component_model::PropertyPath<T, G>, property_changed_throttle: std::time::Duration) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::GroupChangeSet<T, K, G>>>
group_on_property that evaluates the groups once the
property has not changed for property_changed_throttle, timed on the default scheduler
(GroupOnProperty(Expression, TimeSpan?)).
group_on_property_with_on
fn group_on_property_with_on<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, property_selector: ferroui_system::component_model::PropertyPath<T, G>, property_changed_throttle: std::time::Duration, scheduler: std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::GroupChangeSet<T, K, G>>>
group_on_property_with timed on scheduler
(GroupOnProperty(Expression, TimeSpan?, IScheduler?)).
group_on_property_with_immutable_state
fn group_on_property_with_immutable_state<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, property_selector: ferroui_system::component_model::PropertyPath<T, G>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ImmutableGroupChangeSet<T, K, G>>>
The states of the groups of the items by the value of the property property_selector,
which is evaluated again when the property changes on an item
(GroupOnPropertyWithImmutableState(Expression<Func<TObject, TGroupKey>>)).
group_on_property_with_immutable_state_with
fn group_on_property_with_immutable_state_with<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, property_selector: ferroui_system::component_model::PropertyPath<T, G>, property_changed_throttle: std::time::Duration) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ImmutableGroupChangeSet<T, K, G>>>
group_on_property_with_immutable_state
that evaluates the groups once the property has not changed for
property_changed_throttle, timed on the default scheduler
(GroupOnPropertyWithImmutableState(Expression, TimeSpan?)).
group_on_property_with_immutable_state_with_on
fn group_on_property_with_immutable_state_with_on<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, property_selector: ferroui_system::component_model::PropertyPath<T, G>, property_changed_throttle: std::time::Duration, scheduler: std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ImmutableGroupChangeSet<T, K, G>>>
group_on_property_with_immutable_state_with
timed on scheduler (GroupOnPropertyWithImmutableState(Expression, TimeSpan?, IScheduler?)).
group_with_immutable_state
fn group_with_immutable_state<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, group_selector_key: impl Fn(&T) -> G + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ImmutableGroupChangeSet<T, K, G>>>
The items grouped by the key group_selector_key selects, as states of the groups that
do not change: a group whose items change is updated with its new state
(GroupWithImmutableState(Func<TObject, TGroupKey>, IObservable<Unit>? regrouper = null)).
group_with_immutable_state_with
fn group_with_immutable_state_with<G: Eq + std::hash::Hash + Clone + 'static>(self: &Self, group_selector_key: impl Fn(&T) -> G + 'static, regrouper: std::rc::Rc<dyn ferroui_system::IObservable<()>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ImmutableGroupChangeSet<T, K, G>>>
group_with_immutable_state that evaluates the group
of every item again when regrouper produces a value
(GroupWithImmutableState(Func<TObject, TGroupKey>, IObservable<Unit>)).
ignore_same_reference_update
fn ignore_same_reference_update(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: std::ops::Deref
The changes without the updates whose current item is the previous one
(IgnoreSameReferenceUpdate, IgnoreUpdateWhen((c, p) => ReferenceEquals(c, p))).
Deviation (DEVIATIONS.md, DynamicData): the reference of an item is the object its
pointer refers to (T: Deref, an Rc<..> for the classes of upstream); two items are
the same reference when they point to the same object.
ignore_update_when
fn ignore_update_when(self: &Self, ignore_function: impl Fn(&T, &T) -> bool + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The changes without the updates that ignore_function accepts; it is given the current
and the previous item. The change sets left empty are dropped
(IgnoreUpdateWhen(Func<TObject, TObject, bool>)).
include_update_when
fn include_update_when(self: &Self, include_function: impl Fn(&T, &T) -> bool + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The changes without the updates that include_function rejects; it is given the current
and the previous item. The change sets left empty are dropped
(IncludeUpdateWhen(Func<TObject, TObject, bool>)).
invoke_evaluate
fn invoke_evaluate(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: crate::binding::IEvaluateAware
Calls evaluate on the item of each refresh
before the change set is forwarded (InvokeEvaluate).
limit_size_to
fn limit_size_to(self: &Self, size: usize) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The items, the oldest removed beyond size (LimitSizeTo(IObservable<IChangeSet>, int)).
Panics
For a size of zero (ArgumentException).
merge_change_sets
fn merge_change_sets(self: &Self, other: 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: PartialEq
The change sets of the sequence and of other, merged; it completes when both have
completed (MergeChangeSets(IObservable<IChangeSet>, IObservable<IChangeSet>, IScheduler? = null, bool completable = true)).
merge_change_sets_with_comparer
fn merge_change_sets_with_comparer(self: &Self, other: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>, equality_comparer: impl Fn(&T, &T) -> bool + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
merge_change_sets with the equality of the items
(MergeChangeSets(.., IObservable<IChangeSet>, IEqualityComparer<TObject>, ..)).
merge_change_sets_ordered_by
fn merge_change_sets_ordered_by(self: &Self, other: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>, comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: PartialEq
merge_change_sets where the value of a key is the least by
comparer (MergeChangeSets(.., IObservable<IChangeSet>, IComparer<TObject>, ..)).
merge_change_sets_with
fn merge_change_sets_with(self: &Self, other: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>, equality_comparer: Option<std::rc::Rc<dyn Fn(&T, &T) -> bool>>, comparer: Option<std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>>, scheduler: Option<std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>>, completable: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: PartialEq
merge_change_sets with every argument: the equality of the
items (PartialEq when None), the comparer, the scheduler that enumerates the two
sequences, and whether the merge completes after them
(MergeChangeSets(.., IObservable<IChangeSet>, IEqualityComparer<TObject>, IComparer<TObject>, IScheduler?, bool)).
merge_change_sets_many
fn merge_change_sets_many(self: &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: PartialEq
The change sets of the sequence and of others, merged
(MergeChangeSets(IObservable<IChangeSet>, IEnumerable<IObservable<IChangeSet>>, IScheduler? = null, bool completable = true)).
merge_change_sets_many_with
fn merge_change_sets_many_with(self: &Self, others: Vec<std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>>, equality_comparer: Option<std::rc::Rc<dyn Fn(&T, &T) -> bool>>, comparer: Option<std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>>, scheduler: Option<std::rc::Rc<dyn ferroui_reactive::concurrency::IScheduler>>, completable: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: PartialEq
merge_change_sets_many with every argument
(MergeChangeSets(.., IEnumerable<IObservable<IChangeSet>>, IEqualityComparer<TObject>, IComparer<TObject>, IScheduler?, bool)).
merge_many
fn merge_many<D: 'static>(self: &Self, observable_selector: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<D>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<D>>
The values of the sequence that observable_selector chooses for each item, merged; the
sequence of an item is subscribed while the item is in the cache. The merge completes
when the source and every sequence have completed
(MergeMany(Func<TObject, IObservable<TDestination>>)).
merge_many_with_key
fn merge_many_with_key<D: 'static>(self: &Self, observable_selector: impl Fn(&T, &K) -> std::rc::Rc<dyn ferroui_system::IObservable<D>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<D>>
merge_many with a selector that takes the key
(MergeMany(Func<TObject, TKey, IObservable<TDestination>>)).
merge_many_change_sets
fn merge_many_change_sets<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static>(self: &Self, observable_selector: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
The change sets of the cache that observable_selector chooses for each item, merged
(MergeManyChangeSets(Func<TObject, IObservable<IChangeSet<TDestination, TDestinationKey>>>, IEqualityComparer<TDestination>? = null, IComparer<TDestination>? = null)).
merge_many_change_sets_with_key
fn merge_many_change_sets_with_key<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static>(self: &Self, observable_selector: impl Fn(&T, &K) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
merge_many_change_sets with a selector that takes the
key (MergeManyChangeSets(Func<TObject, TKey, IObservable<IChangeSet<TDestination, TDestinationKey>>>, ..)).
merge_many_change_sets_with_comparer
fn merge_many_change_sets_with_comparer<D: Clone + 'static, DK: Eq + std::hash::Hash + Clone + 'static>(self: &Self, observable_selector: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>> + 'static, equality_comparer: impl Fn(&D, &D) -> bool + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
merge_many_change_sets with the equality of the
children (MergeManyChangeSets(.., IEqualityComparer<TDestination>)).
merge_many_change_sets_ordered_by
fn merge_many_change_sets_ordered_by<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static>(self: &Self, observable_selector: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>> + 'static, comparer: std::rc::Rc<dyn Fn(&D, &D) -> std::cmp::Ordering>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
merge_many_change_sets where the value of a key is the
least child by comparer (MergeManyChangeSets(.., IComparer<TDestination>)).
merge_many_change_sets_with
fn merge_many_change_sets_with<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static>(self: &Self, observable_selector: impl Fn(&T, &K) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>> + 'static, equality_comparer: Option<std::rc::Rc<dyn Fn(&D, &D) -> bool>>, comparer: Option<std::rc::Rc<dyn Fn(&D, &D) -> std::cmp::Ordering>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
merge_many_change_sets with every argument: a selector
that takes the key, the equality of the children (PartialEq when None) and their
comparer (MergeManyChangeSets(Func<TObject, TKey, ..>, IEqualityComparer<TDestination>?, IComparer<TDestination>?)).
merge_many_change_sets_with_source_comparer
fn merge_many_change_sets_with_source_comparer<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static>(self: &Self, observable_selector: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>> + 'static, source_comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
where T: PartialEq
The change sets of the cache chosen for each item, merged, where the children of the
least parent by source_comparer win; a refresh of a parent chooses its children again
(MergeManyChangeSets(Func<TObject, IObservable<..>>, IComparer<TObject> sourceComparer, IEqualityComparer<TDestination>? = null, IComparer<TDestination>? = null)).
merge_many_change_sets_with_source_comparer_with
fn merge_many_change_sets_with_source_comparer_with<D: Clone + PartialEq + 'static, DK: Eq + std::hash::Hash + Clone + 'static>(self: &Self, observable_selector: impl Fn(&T, &K) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>> + 'static, source_comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>, resort_on_source_refresh: bool, equality_comparer: Option<std::rc::Rc<dyn Fn(&D, &D) -> bool>>, child_comparer: Option<std::rc::Rc<dyn Fn(&D, &D) -> std::cmp::Ordering>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
where T: PartialEq
merge_many_change_sets_with_source_comparer
with every argument: a selector that takes the key, whether a refresh of a parent chooses
its children again, the equality of the children (that of the parents and the children
when None) and the comparer of the children (MergeManyChangeSets(Func<TObject, TKey, ..>, IComparer<TObject>, bool resortOnSourceRefresh, IEqualityComparer<TDestination>?, IComparer<TDestination>?)).
merge_many_list_change_sets
fn merge_many_list_change_sets<D: Clone + PartialEq + 'static>(self: &Self, observable_selector: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::list::ChangeSet<D>>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::list::ChangeSet<D>>>
The change sets of the list that observable_selector chooses for each item, merged into
those of one list (MergeManyChangeSets(Func<TObject, IObservable<IChangeSet< TDestination>>>, IEqualityComparer<TDestination>? = null)).
merge_many_list_change_sets_with_key
fn merge_many_list_change_sets_with_key<D: Clone + PartialEq + 'static>(self: &Self, observable_selector: impl Fn(&T, &K) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::list::ChangeSet<D>>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::list::ChangeSet<D>>>
merge_many_list_change_sets with a selector that
takes the key (MergeManyChangeSets(Func<TObject, TKey, IObservable<IChangeSet< TDestination>>>, ..)).
merge_many_list_change_sets_with
fn merge_many_list_change_sets_with<D: Clone + PartialEq + 'static>(self: &Self, observable_selector: impl Fn(&T, &K) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::list::ChangeSet<D>>> + 'static, equality_comparer: Option<std::rc::Rc<dyn Fn(&D, &D) -> bool>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::list::ChangeSet<D>>>
merge_many_list_change_sets_with_key with
the equality of the children, which the copies of the child lists use
(MergeManyChangeSets(Func<TObject, TKey, ..>, IEqualityComparer<TDestination>)).
merge_many_items
fn merge_many_items<D: 'static>(self: &Self, observable_selector: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<D>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::kernel::ItemWithValue<T, D>>>
As merge_many, with each value paired with the item whose sequence
produced it (MergeManyItems(Func<TObject, IObservable<TDestination>>)).
merge_many_items_with_key
fn merge_many_items_with_key<D: 'static>(self: &Self, observable_selector: impl Fn(&T, &K) -> std::rc::Rc<dyn ferroui_system::IObservable<D>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::kernel::ItemWithValue<T, D>>>
merge_many_items with a selector that takes the key
(MergeManyItems(Func<TObject, TKey, IObservable<TDestination>>)).
of_type_cache
fn of_type_cache<U: 'static>(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<std::rc::Rc<U>, K>>>
where T: ferroui_reactive::linq::AnyObject
The items that are of U, an update that changes that becoming an addition or a
removal; empty change sets are left out (OfType<TDestination>(bool suppressEmptyChangeSets = true); named of_type_cache beside ObservableExt::of_type).
The items are Rc<dyn Any>.
of_type_cache_with
fn of_type_cache_with<U: 'static>(self: &Self, suppress_empty_change_sets: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<std::rc::Rc<U>, K>>>
where T: ferroui_reactive::linq::AnyObject
of_type_cache that keeps the empty change sets when
suppress_empty_change_sets is false (OfType<TDestination>(bool)).
on_item_added
fn on_item_added(self: &Self, add_action: impl Fn(&T) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
Runs add_action for each item added, before the change set is forwarded
(OnItemAdded(Action<TObject>)).
on_item_added_with_key
fn on_item_added_with_key(self: &Self, add_action: impl Fn(&T, &K) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
on_item_added with the key (OnItemAdded(Action<TObject, TKey>)).
on_item_refreshed
fn on_item_refreshed(self: &Self, refresh_action: impl Fn(&T) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
Runs refresh_action for each item refreshed, before the change set is forwarded
(OnItemRefreshed(Action<TObject>)).
on_item_refreshed_with_key
fn on_item_refreshed_with_key(self: &Self, refresh_action: impl Fn(&T, &K) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
on_item_refreshed with the key
(OnItemRefreshed(Action<TObject, TKey>)).
on_item_removed
fn on_item_removed(self: &Self, remove_action: impl Fn(&T) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
Runs remove_action for each item removed, before the change set is forwarded, and for
every item left when the subscription ends (OnItemRemoved(Action<TObject>, bool invokeOnUnsubscribe = true)).
on_item_removed_with_key
fn on_item_removed_with_key(self: &Self, remove_action: impl Fn(&T, &K) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
on_item_removed with the key
(OnItemRemoved(Action<TObject, TKey>, bool invokeOnUnsubscribe = true)).
on_item_removed_with
fn on_item_removed_with(self: &Self, remove_action: impl Fn(&T, &K) -> () + 'static, invoke_on_unsubscribe: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
on_item_removed_with_key, for the items left when the
subscription ends only when invoke_on_unsubscribe is true
(OnItemRemoved(Action<TObject, TKey>, bool invokeOnUnsubscribe)).
on_item_updated
fn on_item_updated(self: &Self, update_action: impl Fn(&T, &T) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
Runs update_action with the new item and the one it replaces, for each update, before
the change set is forwarded (OnItemUpdated(Action<TObject, TObject>)).
on_item_updated_with_key
fn on_item_updated_with_key(self: &Self, update_action: impl Fn(&T, &T, &K) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
on_item_updated with the key
(OnItemUpdated(Action<TObject, TObject, TKey>)).
populate_into
fn populate_into<D: crate::cache::ISourceCache<T, K> + Clone + 'static>(self: &Self, destination: &D) -> std::rc::Rc<dyn ferroui_system::IDisposable>
Applies each change set to destination (PopulateInto(ISourceCache)).
populate_into_intermediate
fn populate_into_intermediate(self: &Self, destination: &crate::cache::IntermediateCache<T, K>) -> std::rc::Rc<dyn ferroui_system::IDisposable>
Applies each change set to destination (PopulateInto(IIntermediateCache)).
populate_into_lock_free
fn populate_into_lock_free(self: &Self, destination: &crate::cache::LockFreeObservableCache<T, K>) -> std::rc::Rc<dyn ferroui_system::IDisposable>
Applies each change set to destination (PopulateInto(LockFreeObservableCache)).
query_when_changed
fn query_when_changed(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn crate::cache::IQuery<T, K>>>>
A snapshot of the items to query after each change set (QueryWhenChanged()).
query_when_changed_with
fn query_when_changed_with<R: 'static>(self: &Self, result_selector: impl Fn(std::rc::Rc<dyn crate::cache::IQuery<T, K>>) -> R + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<R>>
What result_selector makes of a snapshot of the items after each change set
(QueryWhenChanged(Func<IQuery<TObject, TKey>, TDestination>)).
query_when_changed_with_trigger
fn query_when_changed_with_trigger<V: 'static>(self: &Self, item_changed_trigger: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<V>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn crate::cache::IQuery<T, K>>>>
A snapshot of the items after each change set and each value of the observable that
item_changed_trigger gives for an item (QueryWhenChanged(Func<TObject, IObservable<TValue>>)).
ref_count
fn ref_count(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
One cache of the sequence, shared by the subscribers: made when the first subscribes,
disposed when the last unsubscribes (RefCount).
remove_key
fn remove_key(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::list::ChangeSet<T>>>
where T: PartialEq
The changes as changes of a list, without their keys: an update becomes a removal and an
addition, and a refresh a replacement of the item by itself (RemoveKey()).
skip_initial
fn skip_initial(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The change sets after the first one (SkipInitial).
sort
fn sort(self: &Self, comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::SortedChangeSet<T, K>>>
The items, sorted by comparer: each change set has the indexes of its changes and
the sorted items (Sort(IComparer<TObject>) with the default optimisations and reset
threshold).
sort_with
fn sort_with(self: &Self, comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>, sort_optimisations: crate::cache::SortOptimisations, reset_threshold: usize) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::SortedChangeSet<T, K>>>
sort with sort_optimisations and reset_threshold, the number of
changes from which the sorted items are rebuilt rather than edited (0 never rebuilds)
(Sort(IComparer<TObject>, SortOptimisations, int resetThreshold)).
sort_dynamic
fn sort_dynamic(self: &Self, comparer_observable: 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::cache::SortedChangeSet<T, K>>>
The items, sorted by the latest comparer of comparer_observable; nothing is produced
before the first comparer (Sort(IObservable<IComparer<TObject>>) with the default
optimisations and reset threshold).
sort_dynamic_with
fn sort_dynamic_with(self: &Self, comparer_observable: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>>>, sort_optimisations: crate::cache::SortOptimisations, reset_threshold: usize) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::SortedChangeSet<T, K>>>
sort_dynamic with sort_optimisations and reset_threshold
(Sort(IObservable<IComparer<TObject>>, SortOptimisations, int resetThreshold)).
sort_dynamic_with_resorter
fn sort_dynamic_with_resorter(self: &Self, comparer_observable: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>>>, resorter: std::rc::Rc<dyn ferroui_system::IObservable<()>>, sort_optimisations: crate::cache::SortOptimisations, reset_threshold: usize) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::SortedChangeSet<T, K>>>
sort_dynamic_with that also sorts again, with moves,
whenever resorter notifies (Sort(IObservable<IComparer<TObject>>, IObservable<Unit>, SortOptimisations, int resetThreshold)).
sort_with_resorter
fn sort_with_resorter(self: &Self, comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>, resorter: std::rc::Rc<dyn ferroui_system::IObservable<()>>, sort_optimisations: crate::cache::SortOptimisations, reset_threshold: usize) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::SortedChangeSet<T, K>>>
sort_with that also sorts again, with moves, whenever resorter
notifies (Sort(IComparer<TObject>, IObservable<Unit>, SortOptimisations, int resetThreshold)).
sort_and_bind
fn sort_and_bind<L: crate::list::IList<T> + Clone + 'static>(self: &Self, target: &L, comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: PartialEq
Sorts the items by comparer into target (SortAndBind(IList<TObject>, IComparer<TObject>)), with the options of DynamicDataOptions.SortAndBind.
sort_and_bind_with
fn sort_and_bind_with(self: &Self, target: &impl crate::list::IList<T> + Clone + 'static, comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>, options: crate::binding::SortAndBindOptions) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: PartialEq
sort_and_bind with options (SortAndBind(IList<TObject>, IComparer<TObject>, SortAndBindOptions)).
sort_and_bind_by_default
fn sort_and_bind_by_default(self: &Self, target: &impl crate::list::IList<T> + Clone + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: Ord
Sorts the items in their natural order into target (SortAndBind(IList<TObject>),
Comparer<TObject>.Default).
sort_and_bind_by_default_with
fn sort_and_bind_by_default_with(self: &Self, target: &impl crate::list::IList<T> + Clone + 'static, options: crate::binding::SortAndBindOptions) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: Ord
sort_and_bind_by_default with options
(SortAndBind(IList<TObject>, SortAndBindOptions)).
sort_and_bind_on_observable
fn sort_and_bind_on_observable(self: &Self, target: &impl crate::list::IList<T> + Clone + 'static, 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::cache::ChangeSet<T, K>>>
where T: PartialEq
Sorts the items into target by the latest comparer of comparer_changed, sorting
again at each one (SortAndBind(IList<TObject>, IObservable<IComparer<TObject>>)).
sort_and_bind_on_observable_with
fn sort_and_bind_on_observable_with(self: &Self, target: &impl crate::list::IList<T> + Clone + 'static, comparer_changed: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>>>, options: crate::binding::SortAndBindOptions) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: PartialEq
sort_and_bind_on_observable with options
(SortAndBind(IList<TObject>, IObservable<IComparer<TObject>>, SortAndBindOptions)).
sort_and_bind_read_only
fn sort_and_bind_read_only(self: &Self, comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>) -> (std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>, crate::binding::ReadOnlyObservableCollection<T>)
where T: PartialEq
Sorts the items by comparer into a new collection, returned as a read-only view
(SortAndBind(out ReadOnlyObservableCollection<TObject>, IComparer<TObject>)).
sort_and_bind_read_only_with
fn sort_and_bind_read_only_with(self: &Self, comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>, options: crate::binding::SortAndBindOptions) -> (std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>, crate::binding::ReadOnlyObservableCollection<T>)
where T: PartialEq
sort_and_bind_read_only with options, whose
initial capacity sizes the collection (SortAndBind(out ReadOnlyObservableCollection<TObject>, IComparer<TObject>, SortAndBindOptions)).
sort_and_bind_read_only_by_default
fn sort_and_bind_read_only_by_default(self: &Self) -> (std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>, crate::binding::ReadOnlyObservableCollection<T>)
where T: Ord
Sorts the items in their natural order into a new collection, returned as a read-only
view (SortAndBind(out ReadOnlyObservableCollection<TObject>)).
sort_and_bind_read_only_by_default_with
fn sort_and_bind_read_only_by_default_with(self: &Self, options: crate::binding::SortAndBindOptions) -> (std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>, crate::binding::ReadOnlyObservableCollection<T>)
where T: Ord
sort_and_bind_read_only_by_default with
options (SortAndBind(out ReadOnlyObservableCollection<TObject>, SortAndBindOptions)).
sort_and_bind_read_only_on_observable
fn sort_and_bind_read_only_on_observable(self: &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::cache::ChangeSet<T, K>>>, crate::binding::ReadOnlyObservableCollection<T>)
where T: PartialEq
Sorts the items by the latest comparer of comparer_changed into a new collection,
returned as a read-only view (SortAndBind(out ReadOnlyObservableCollection<TObject>, IObservable<IComparer<TObject>>)).
sort_and_bind_read_only_on_observable_with
fn sort_and_bind_read_only_on_observable_with(self: &Self, comparer_changed: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>>>, options: crate::binding::SortAndBindOptions) -> (std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>, crate::binding::ReadOnlyObservableCollection<T>)
where T: PartialEq
sort_and_bind_read_only_on_observable
with options (SortAndBind(out ReadOnlyObservableCollection<TObject>, IObservable<IComparer<TObject>>, SortAndBindOptions)).
bind_to_list
fn bind_to_list(self: &Self, target_list: &impl crate::list::IList<T> + Clone + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: PartialEq,
Self: Sized + 'static
Binds the results of SortAndPage or SortAndVirtualize to target_list, sorted by
the comparer of their context, with the options of their context
(Bind(IList<TObject>) of IChangeSet<TObject, TKey, PageContext<TObject>> and of
IChangeSet<TObject, TKey, VirtualContext<TObject>>).
Panics
When the source is not a result of SortAndPage or SortAndVirtualize.
bind_to_list_with
fn bind_to_list_with(self: &Self, target_list: &impl crate::list::IList<T> + Clone + 'static, options: crate::binding::SortAndBindOptions) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: PartialEq,
Self: Sized + 'static
bind_to_list with options (Bind(IList<TObject>, SortAndBindOptions) of the paged and virtualised change sets).
Panics
When the source is not a result of SortAndPage or SortAndVirtualize.
bind_read_only_with_sort_and_bind_options
fn bind_read_only_with_sort_and_bind_options(self: &Self, options: crate::binding::SortAndBindOptions) -> (std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>, crate::binding::ReadOnlyObservableCollection<T>)
where T: PartialEq,
Self: Sized + 'static
Binds the results of SortAndPage or SortAndVirtualize to a new collection, returned
as a read-only view (Bind(out ReadOnlyObservableCollection<TObject>, SortAndBindOptions) of the paged and virtualised change sets). Their form without
options is bind_read_only.
Panics
When the source is not a result of SortAndPage or SortAndVirtualize.
sort_by
fn sort_by<V: PartialOrd + 'static>(self: &Self, expression: impl Fn(&T) -> V + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::SortedChangeSet<T, K>>>
The items, sorted by the value that expression reads, ascending
(SortBy(Func<TObject, IComparable>) with the default direction, optimisations and
reset threshold).
sort_by_with
fn sort_by_with<V: PartialOrd + 'static>(self: &Self, expression: impl Fn(&T) -> V + 'static, sort_order: crate::binding::SortDirection, sort_optimisations: crate::cache::SortOptimisations, reset_threshold: usize) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::SortedChangeSet<T, K>>>
The items, sorted by the value that expression reads, in sort_order
(SortBy(Func<TObject, IComparable>, SortDirection, SortOptimisations, int)).
start_with_empty
fn start_with_empty(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
An empty change set, then the change sets (StartWithEmpty).
start_with_item
fn start_with_item(self: &Self, item: T, key: K) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
A change set that adds item under key, then the change sets
(StartWithItem(TObject, TKey)).
start_with_keyed_item
fn start_with_keyed_item(self: &Self, item: T) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
where T: crate::cache::IKey<K>
A change set that adds item under its own key, then the change sets
(StartWithItem(TObject) for an item that is an IKey<TKey>).
subscribe_many
fn subscribe_many(self: &Self, subscription_factory: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IDisposable> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
Makes a subscription for each item with subscription_factory, when it is added; the
subscription is disposed when the item is removed or replaced, or when the subscription
to the result ends. The change sets are forwarded as they are
(SubscribeMany(Func<TObject, IDisposable>)).
subscribe_many_with_key
fn subscribe_many_with_key(self: &Self, subscription_factory: impl Fn(&T, &K) -> std::rc::Rc<dyn ferroui_system::IDisposable> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
subscribe_many with a factory that takes the key
(SubscribeMany(Func<TObject, TKey, IDisposable>)).
suppress_refresh
fn suppress_refresh(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The changes without the refreshes (SuppressRefresh, WhereReasonsAreNot(Refresh)).
to_collection
fn to_collection(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<Vec<T>>>
The items of the cache after each change set (ToCollection): a copy of the items, in
the order of the cache.
to_observable_optional
fn to_observable_optional(self: &Self, key: K) -> std::rc::Rc<dyn ferroui_system::IObservable<Option<T>>>
where T: PartialEq
The item of key as an option each time it changes, None when it is removed; equal
successive items are left out (ToObservableOptional(TKey, IEqualityComparer? = null)).
to_observable_optional_with_comparer
fn to_observable_optional_with_comparer(self: &Self, key: K, equality_comparer: impl Fn(&T, &T) -> bool + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<Option<T>>>
to_observable_optional with the equality of
equality_comparer (ToObservableOptional(TKey, IEqualityComparer)).
to_observable_optional_with_initial
fn to_observable_optional_with_initial(self: &Self, key: K, initial_optional_when_missing: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<Option<T>>>
where T: PartialEq
to_observable_optional that starts with None when the
item is not there at first and initial_optional_when_missing is true
(ToObservableOptional(TKey, bool, IEqualityComparer? = null)).
to_observable_optional_with_initial_and_comparer
fn to_observable_optional_with_initial_and_comparer(self: &Self, key: K, initial_optional_when_missing: bool, equality_comparer: impl Fn(&T, &T) -> bool + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<Option<T>>>
to_observable_optional_with_initial with
the equality of equality_comparer.
to_sorted_collection
fn to_sorted_collection<S: Ord + 'static>(self: &Self, sort: impl Fn(&T) -> S + 'static, sort_order: crate::binding::SortDirection) -> std::rc::Rc<dyn ferroui_system::IObservable<Vec<T>>>
The items of the cache after each change set, sorted by the key that sort gives
(ToSortedCollection(Func<TObject, TSortKey>, SortDirection sortOrder = Ascending)); a
stable sort, as OrderBy and OrderByDescending are.
to_sorted_collection_with_comparer
fn to_sorted_collection_with_comparer(self: &Self, comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>) -> std::rc::Rc<dyn ferroui_system::IObservable<Vec<T>>>
The items of the cache after each change set, sorted by comparer
(ToSortedCollection(IComparer<TObject>)).
transform
fn transform<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T) -> U + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
Each item in the form transform_factory gives it, under the same key: an addition or
an update transforms the item, a removal removes it, a refresh is forwarded and a move
ignored (Transform(Func<TSource, TDestination>, IObservable<Func<TSource, bool>>? forceTransform = null)).
transform_with_key
fn transform_with_key<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, &K) -> U + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform with a factory of the item and its key
(Transform(Func<TSource, TKey, TDestination>, IObservable<Func<TSource, TKey, bool>>? forceTransform = null)).
transform_with_previous
fn transform_with_previous<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, Option<&T>, &K) -> U + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform with a factory of the item, the item it replaces (for an
update) and the key
(Transform(Func<TSource, Optional<TSource>, TKey, TDestination>, IObservable<Func<TSource, TKey, bool>>? forceTransform = null)).
transform_with_refresh
fn transform_with_refresh<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T) -> U + 'static, transform_on_refresh: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform that, when transform_on_refresh is true, transforms
a refreshed item again and emits it as an update
(Transform(Func<TSource, TDestination>, bool transformOnRefresh)).
transform_with_key_and_refresh
fn transform_with_key_and_refresh<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, &K) -> U + 'static, transform_on_refresh: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_with_key with the flag of
transform_with_refresh
(Transform(Func<TSource, TKey, TDestination>, bool transformOnRefresh)).
transform_with_previous_and_refresh
fn transform_with_previous_and_refresh<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, Option<&T>, &K) -> U + 'static, transform_on_refresh: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_with_previous with the flag of
transform_with_refresh
(Transform(Func<TSource, Optional<TSource>, TKey, TDestination>, bool transformOnRefresh)).
transform_forced
fn transform_forced<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T) -> U + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T) -> bool>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform that also transforms again, as updates, the items that
each predicate of force_transform accepts
(Transform(Func<TSource, TDestination>, IObservable<Func<TSource, bool>>)).
transform_with_key_forced
fn transform_with_key_forced<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, &K) -> U + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &K) -> bool>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_with_key that also transforms again, as
updates, the items that each predicate of force_transform accepts
(Transform(Func<TSource, TKey, TDestination>, IObservable<Func<TSource, TKey, bool>>)).
transform_with_previous_forced
fn transform_with_previous_forced<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, Option<&T>, &K) -> U + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &K) -> bool>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_with_previous that also transforms again,
as updates, the items that each predicate of force_transform accepts
(Transform(Func<TSource, Optional<TSource>, TKey, TDestination>, IObservable<Func<TSource, TKey, bool>>)).
transform_forced_all
fn transform_forced_all<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T) -> U + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<()>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform that transforms every item again, as updates, whenever
force_transform produces a value
(Transform(Func<TSource, TDestination>, IObservable<Unit>)).
transform_with_key_forced_all
fn transform_with_key_forced_all<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, &K) -> U + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<()>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_with_key that transforms every item again
whenever force_transform produces a value
(Transform(Func<TSource, TKey, TDestination>, IObservable<Unit>)).
transform_with_previous_forced_all
fn transform_with_previous_forced_all<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, Option<&T>, &K) -> U + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<()>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_with_previous that transforms every item
again whenever force_transform produces a value
(Transform(Func<TSource, Optional<TSource>, TKey, TDestination>, IObservable<Unit>)).
try_transform
fn try_transform<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T) -> Result<U, ferroui_system::ObservableError> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform with a factory that may fail: its error ends the
sequence (Transform(Func<TSource, TDestination>) with a factory that throws).
try_transform_with_key
fn try_transform_with_key<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, &K) -> Result<U, ferroui_system::ObservableError> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_with_key with a factory that may fail.
try_transform_with_previous
fn try_transform_with_previous<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, Option<&T>, &K) -> Result<U, ferroui_system::ObservableError> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_with_previous with a factory that may fail.
try_transform_with_previous_and_refresh
fn try_transform_with_previous_and_refresh<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, Option<&T>, &K) -> Result<U, ferroui_system::ObservableError> + 'static, transform_on_refresh: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_with_previous_and_refresh with
a factory that may fail.
try_transform_with_previous_forced
fn try_transform_with_previous_forced<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, Option<&T>, &K) -> Result<U, ferroui_system::ObservableError> + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &K) -> bool>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_with_previous_forced with a factory
that may fail.
try_transform_with_previous_forced_all
fn try_transform_with_previous_forced_all<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, Option<&T>, &K) -> Result<U, ferroui_system::ObservableError> + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<()>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_with_previous_forced_all with a
factory that may fail.
transform_immutable
fn transform_immutable<U: 'static>(self: &Self, transform_factory: impl Fn(&T) -> U + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
Each change with its items transformed by transform_factory and every other part
kept, the indexes included; nothing is cached, so the factory runs for every change
(the previous item of an update too) and should be cheap and pure
(TransformImmutable(Func<TSource, TDestination>)).
try_transform_immutable
fn try_transform_immutable<U: 'static>(self: &Self, transform_factory: impl Fn(&T) -> Result<U, ferroui_system::ObservableError> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_immutable with a factory that may fail: its
error ends the sequence, and the change set that raised it is not emitted
(TransformImmutable with a factory that throws).
transform_many
fn transform_many<D: Clone + std::ops::Deref + 'static, DK: Eq + std::hash::Hash + Clone + 'static>(self: &Self, many_selector: impl Fn(&T) -> Vec<D> + 'static, key_selector: impl Fn(&D) -> DK + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
The items that many_selector gives for each item, keyed by key_selector
(TransformMany(Func<TSource, IEnumerable<TDestination>>, Func<TDestination, TDestinationKey>)).
A refresh of an item of the source takes its items again.
transform_many_observable_cache
fn transform_many_observable_cache<D: Clone + std::ops::Deref + 'static, DK: Eq + std::hash::Hash + Clone + 'static, C: crate::cache::IObservableCache<D, DK> + 'static>(self: &Self, many_selector: impl Fn(&T) -> C + 'static, key_selector: impl Fn(&D) -> DK + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
The items of the cache that many_selector gives for each item, keyed by
key_selector, followed as the caches change
(TransformMany(Func<TSource, IObservableCache<TDestination, TDestinationKey>>, Func<TDestination, TDestinationKey>)).
transform_many_observable_collection
fn transform_many_observable_collection<D: Clone + PartialEq + std::ops::Deref + 'static, DK: Eq + std::hash::Hash + Clone + 'static, C: crate::binding::ObservableCollectionEx<D> + 'static>(self: &Self, many_selector: impl Fn(&T) -> C + 'static, key_selector: impl Fn(&D) -> DK + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<D, DK>>>
The items of the observable collection that many_selector gives for each item, keyed
by key_selector, followed as the collections change
(TransformMany(Func<TSource, ObservableCollection<TDestination>>, Func<TDestination, TDestinationKey>),
TransformMany(Func<TSource, ReadOnlyObservableCollection<TDestination>>, Func<TDestination, TDestinationKey>)).
transform_on_observable
fn transform_on_observable<U: Clone + PartialEq + 'static>(self: &Self, transform_factory: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<U>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
For each item, the latest distinct value of the observable transform_factory makes of
it, under the key of the item: an addition or an update subscribes to a new observable,
a removal ends it and removes the value. The values that one change set of the source
makes at once come as one change set; the sequence ends when the source and every
observable have ended, and fails with the first error of any of them
(TransformOnObservable(Func<TSource, IObservable<TDestination>>)).
transform_on_observable_with_key
fn transform_on_observable_with_key<U: Clone + PartialEq + 'static>(self: &Self, transform_factory: impl Fn(&T, &K) -> std::rc::Rc<dyn ferroui_system::IObservable<U>> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_on_observable with a factory of the item
and its key (TransformOnObservable(Func<TSource, TKey, IObservable<TDestination>>)).
transform_safe
fn transform_safe<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T) -> Result<U, ferroui_system::ObservableError> + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform whose factory may fail: an error goes to
error_handler and leaves the item out
(TransformSafe(Func<TSource, TDestination>, Action<Error<TSource, TKey>>, IObservable<Func<TSource, bool>>? forceTransform = null)).
transform_safe_with_key
fn transform_safe_with_key<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, &K) -> Result<U, ferroui_system::ObservableError> + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe with a factory of the item and its key
(TransformSafe(Func<TSource, TKey, TDestination>, Action<Error<TSource, TKey>>, IObservable<Func<TSource, TKey, bool>>? forceTransform = null)).
transform_safe_with_previous
fn transform_safe_with_previous<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, Option<&T>, &K) -> Result<U, ferroui_system::ObservableError> + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe with a factory of the item, the item it
replaces and the key
(TransformSafe(Func<TSource, Optional<TSource>, TKey, TDestination>, Action<Error<TSource, TKey>>, IObservable<Func<TSource, TKey, bool>>? forceTransform = null)).
transform_safe_forced
fn transform_safe_forced<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T) -> Result<U, ferroui_system::ObservableError> + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T) -> bool>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe that also transforms again, as updates, the
items that each predicate of force_transform accepts
(TransformSafe(Func<TSource, TDestination>, Action<Error<TSource, TKey>>, IObservable<Func<TSource, bool>>)).
transform_safe_with_key_forced
fn transform_safe_with_key_forced<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, &K) -> Result<U, ferroui_system::ObservableError> + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &K) -> bool>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe_with_key that also transforms
again the items that each predicate of force_transform accepts
(TransformSafe(Func<TSource, TKey, TDestination>, Action<Error<TSource, TKey>>, IObservable<Func<TSource, TKey, bool>>)).
transform_safe_with_previous_forced
fn transform_safe_with_previous_forced<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, Option<&T>, &K) -> Result<U, ferroui_system::ObservableError> + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &K) -> bool>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe_with_previous that also
transforms again the items that each predicate of force_transform accepts
(TransformSafe(Func<TSource, Optional<TSource>, TKey, TDestination>, Action<Error<TSource, TKey>>, IObservable<Func<TSource, TKey, bool>>)).
transform_safe_forced_all
fn transform_safe_forced_all<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T) -> Result<U, ferroui_system::ObservableError> + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<()>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe that transforms every item again whenever
force_transform produces a value
(TransformSafe(Func<TSource, TDestination>, Action<Error<TSource, TKey>>, IObservable<Unit>)).
transform_safe_with_key_forced_all
fn transform_safe_with_key_forced_all<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, &K) -> Result<U, ferroui_system::ObservableError> + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<()>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe_with_key that transforms every item
again whenever force_transform produces a value
(TransformSafe(Func<TSource, TKey, TDestination>, Action<Error<TSource, TKey>>, IObservable<Unit>)).
transform_safe_with_previous_forced_all
fn transform_safe_with_previous_forced_all<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T, Option<&T>, &K) -> Result<U, ferroui_system::ObservableError> + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, force_transform: std::rc::Rc<dyn ferroui_system::IObservable<()>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_safe_with_previous that transforms
every item again whenever force_transform produces a value
(TransformSafe(Func<TSource, Optional<TSource>, TKey, TDestination>, Action<Error<TSource, TKey>>, IObservable<Unit>)).
transform_to_tree
fn transform_to_tree(self: &Self, pivot_on: impl Fn(&T) -> K + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<std::rc::Rc<crate::cache::Node<T, K>>, K>>>
The items as the nodes of a tree, each the child of the node whose key pivot_on
gives for it; the sequence has the roots
(TransformToTree(Func<TObject, TKey>, IObservable<Func<Node<TObject, TKey>, bool>>? predicateChanged = null)).
transform_to_tree_with
fn transform_to_tree_with(self: &Self, pivot_on: impl Fn(&T) -> K + 'static, predicate_changed: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&std::rc::Rc<crate::cache::Node<T, K>>) -> bool>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<std::rc::Rc<crate::cache::Node<T, K>>, K>>>
transform_to_tree whose sequence has the nodes that the
latest predicate of predicate_changed accepts, instead of the roots
(TransformToTree(Func<TObject, TKey>, IObservable<Func<Node<TObject, TKey>, bool>>)).
transform_with_inline_update
fn transform_with_inline_update<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T) -> U + 'static, update_action: impl Fn(&U, &T) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
Each item transformed once by transform_factory; an update calls update_action
with the transformed item and the new item instead, and emits a refresh
(TransformWithInlineUpdate(Func<TSource, TDestination>, Action<TDestination, TSource>)).
transform_with_inline_update_with
fn transform_with_inline_update_with<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T) -> U + 'static, update_action: impl Fn(&U, &T) -> () + 'static, transform_on_refresh: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_with_inline_update that, when
transform_on_refresh is true, updates the transformed item on a refresh too
(TransformWithInlineUpdate(Func<TSource, TDestination>, Action<TDestination, TSource>, bool transformOnRefresh)).
transform_with_inline_update_safe
fn transform_with_inline_update_safe<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T) -> Result<U, ferroui_system::ObservableError> + 'static, update_action: impl Fn(&U, &T) -> Result<(), ferroui_system::ObservableError> + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_with_inline_update whose factory and
update may fail: an error goes to error_handler
(TransformWithInlineUpdate(Func<TSource, TDestination>, Action<TDestination, TSource>, Action<Error<TSource, TKey>>)).
transform_with_inline_update_safe_with
fn transform_with_inline_update_safe_with<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T) -> Result<U, ferroui_system::ObservableError> + 'static, update_action: impl Fn(&U, &T) -> Result<(), ferroui_system::ObservableError> + 'static, error_handler: impl Fn(crate::kernel::Error<T, K>) -> () + 'static, transform_on_refresh: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_with_inline_update_safe with the
flag of transform_with_inline_update_with
(TransformWithInlineUpdate(Func<TSource, TDestination>, Action<TDestination, TSource>, Action<Error<TSource, TKey>>, bool transformOnRefresh)).
try_transform_with_inline_update
fn try_transform_with_inline_update<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T) -> Result<U, ferroui_system::ObservableError> + 'static, update_action: impl Fn(&U, &T) -> Result<(), ferroui_system::ObservableError> + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
transform_with_inline_update whose factory and
update may fail: an error ends the sequence.
try_transform_with_inline_update_with
fn try_transform_with_inline_update_with<U: Clone + 'static>(self: &Self, transform_factory: impl Fn(&T) -> Result<U, ferroui_system::ObservableError> + 'static, update_action: impl Fn(&U, &T) -> Result<(), ferroui_system::ObservableError> + 'static, transform_on_refresh: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<U, K>>>
try_transform_with_inline_update with the
flag of transform_with_inline_update_with.
true_for_all
fn true_for_all<V: Clone + 'static>(self: &Self, observable_selector: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<V>> + 'static, equality_condition: impl Fn(&V) -> bool + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<bool>>
Whether equality_condition holds for the latest value of the observable that
observable_selector gives for each item, each item having one, each time the result
changes (TrueForAll(Func<TObject, IObservable<TValue>>, Func<TValue, bool>)).
true_for_all_with_item
fn true_for_all_with_item<V: Clone + 'static>(self: &Self, observable_selector: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<V>> + 'static, equality_condition: impl Fn(&T, &V) -> bool + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<bool>>
true_for_all with a condition of the item and its value
(TrueForAll(Func<TObject, IObservable<TValue>>, Func<TObject, TValue, bool>)).
true_for_any
fn true_for_any<V: Clone + 'static>(self: &Self, observable_selector: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<V>> + 'static, equality_condition: impl Fn(&V) -> bool + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<bool>>
Whether equality_condition holds for the latest value of the observable that
observable_selector gives for some item, each time the result changes
(TrueForAny(Func<TObject, IObservable<TValue>>, Func<TValue, bool>)).
true_for_any_with_item
fn true_for_any_with_item<V: Clone + 'static>(self: &Self, observable_selector: impl Fn(&T) -> std::rc::Rc<dyn ferroui_system::IObservable<V>> + 'static, equality_condition: impl Fn(&T, &V) -> bool + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<bool>>
true_for_any with a condition of the item and its value
(TrueForAny(Func<TObject, IObservable<TValue>>, Func<TObject, TValue, bool>)).
sort_and_virtualize
fn sort_and_virtualize(self: &Self, comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>, virtual_requests: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::VirtualRequest>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSetWithContext<T, K, crate::cache::VirtualContext<T>>>>
The window of the items, sorted by comparer, that the latest request of
virtual_requests asks for; the change sets hold the changes of the window, with the
window, the comparer and the options as their context (SortAndVirtualize(IComparer, IObservable<IVirtualRequest>)).
sort_and_virtualize_dynamic
fn sort_and_virtualize_dynamic(self: &Self, comparer_changed: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>>>, virtual_requests: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::VirtualRequest>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSetWithContext<T, K, crate::cache::VirtualContext<T>>>>
sort_and_virtualize sorted by the latest comparer of
comparer_changed (SortAndVirtualize(IObservable<IComparer>, IObservable<IVirtualRequest>)).
sort_and_virtualize_with
fn sort_and_virtualize_with(self: &Self, comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>, virtual_requests: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::VirtualRequest>>, options: crate::cache::SortAndVirtualizeOptions) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSetWithContext<T, K, crate::cache::VirtualContext<T>>>>
sort_and_virtualize with options
(SortAndVirtualize(IComparer, IObservable<IVirtualRequest>, SortAndVirtualizeOptions)).
sort_and_virtualize_dynamic_with
fn sort_and_virtualize_dynamic_with(self: &Self, comparer_changed: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>>>, virtual_requests: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::VirtualRequest>>, options: crate::cache::SortAndVirtualizeOptions) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSetWithContext<T, K, crate::cache::VirtualContext<T>>>>
sort_and_virtualize_dynamic with options
(SortAndVirtualize(IObservable<IComparer>, IObservable<IVirtualRequest>, SortAndVirtualizeOptions)).
top
fn top(self: &Self, comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>, size: usize) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSetWithContext<T, K, crate::cache::VirtualContext<T>>>>
The first size items, sorted by comparer (Top(IComparer<TObject>, int size)).
Panics
When size is 0 (ArgumentOutOfRangeException).
sort_and_page
fn sort_and_page(self: &Self, comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>, page_requests: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::PageRequest>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSetWithContext<T, K, crate::cache::PageContext<T>>>>
The page of the items, sorted by comparer, that the latest request of
page_requests asks for; the change sets hold the changes of the page, with the page,
the comparer and the options as their context (SortAndPage(IComparer, IObservable<IPageRequest>)).
sort_and_page_dynamic
fn sort_and_page_dynamic(self: &Self, comparer_changed: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>>>, page_requests: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::PageRequest>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSetWithContext<T, K, crate::cache::PageContext<T>>>>
sort_and_page sorted by the latest comparer of
comparer_changed (SortAndPage(IObservable<IComparer>, IObservable<IPageRequest>)).
sort_and_page_with
fn sort_and_page_with(self: &Self, comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>, page_requests: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::PageRequest>>, options: crate::cache::SortAndPageOptions) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSetWithContext<T, K, crate::cache::PageContext<T>>>>
sort_and_page with options (SortAndPage(IComparer, IObservable<IPageRequest>, SortAndPageOptions)).
sort_and_page_dynamic_with
fn sort_and_page_dynamic_with(self: &Self, comparer_changed: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>>>, page_requests: std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::PageRequest>>, options: crate::cache::SortAndPageOptions) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSetWithContext<T, K, crate::cache::PageContext<T>>>>
sort_and_page_dynamic with options
(SortAndPage(IObservable<IComparer>, IObservable<IPageRequest>, SortAndPageOptions)).
watch
fn watch(self: &Self, key: K) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::Change<T, K>>>
The changes of the item of key (Watch(IObservable<IChangeSet>, TKey)).
watch_value
fn watch_value(self: &Self, key: K) -> std::rc::Rc<dyn ferroui_system::IObservable<T>>
The item of key each time it changes (WatchValue(IObservable<IChangeSet>, TKey)).
when_any_property_changed
fn when_any_property_changed(self: &Self, properties_to_monitor: &[&str]) -> std::rc::Rc<dyn ferroui_system::IObservable<T>>
where T: crate::binding::NotifyPropertyChangedEx
The item, whenever one of properties_to_monitor changes on it, or any property when
none is given, for every item, merged (WhenAnyPropertyChanged(params string[])).
when_property_changed
fn when_property_changed<P: crate::binding::IntoPropertyChain<T>>(self: &Self, property_accessor: P) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::binding::PropertyValue<T, <P as >::Value>>>
where <P as >::Value: 'static
The changes of the property of property_accessor of every item, as the item with the
value, the current values first, merged; an item that a null step of the path leaves
without a value produces nothing
(WhenPropertyChanged(Expression<Func<TObject, TValue>>, bool notifyOnInitialValue = true)).
when_property_changed_with
fn when_property_changed_with<P: crate::binding::IntoPropertyChain<T>>(self: &Self, property_accessor: P, notify_on_initial_value: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::binding::PropertyValue<T, <P as >::Value>>>
where <P as >::Value: 'static
when_property_changed that starts with the current
values only when notify_on_initial_value is true
(WhenPropertyChanged(Expression<Func<TObject, TValue>>, bool)).
when_value_changed
fn when_value_changed<P: crate::binding::IntoPropertyChain<T>>(self: &Self, property_accessor: P) -> std::rc::Rc<dyn ferroui_system::IObservable<<P as >::Value>>
where <P as >::Value: 'static
The values of the property of property_accessor of every item, its current value
first, merged; an item that a null step of the path leaves without a value produces
nothing (WhenValueChanged(Expression<Func<TObject, TValue>>, bool notifyOnInitialValue = true)).
when_value_changed_with
fn when_value_changed_with<P: crate::binding::IntoPropertyChain<T>>(self: &Self, property_accessor: P, notify_on_initial_value: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<<P as >::Value>>
where <P as >::Value: 'static
when_value_changed that starts with the current values
only when notify_on_initial_value is true
(WhenValueChanged(Expression<Func<TObject, TValue>>, bool)).
where_reasons_are
fn where_reasons_are(self: &Self, reasons: &[crate::cache::ChangeReason]) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The changes of the given reasons; the change sets left empty are dropped
(WhereReasonsAre(params ChangeReason[])).
Panics
When reasons is empty (ArgumentException: "Must select at least one reason").
where_reasons_are_not
fn where_reasons_are_not(self: &Self, reasons: &[crate::cache::ChangeReason]) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The changes of reasons other than the given ones; the change sets left empty are
dropped (WhereReasonsAreNot(params ChangeReason[])).
Panics
When reasons is empty (ArgumentException: "Must select at least one reason").
as_observable_cache
fn as_observable_cache(self: &Self) -> crate::cache::ObservableCache<T, K>
A cache of the items of the sequence, which applies its change sets
(AsObservableCache(IObservable<IChangeSet>, bool applyLocking = true); there is no
locking on one thread).
collect_update_stats
fn collect_update_stats(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::diagnostics::ChangeSummary>>
The statistics of each change set and of all of them so far (CollectUpdateStats).
filter
fn filter(self: &Self, filter: impl Fn(&T) -> bool + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The items that filter accepts; an update or a refresh evaluates the item again
(Filter(Func<TObject, bool>, bool suppressEmptyChangeSets = true)).
filter_with
fn filter_with(self: &Self, filter: impl Fn(&T) -> bool + 'static, suppress_empty_change_sets: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
filter that keeps the empty change sets when
suppress_empty_change_sets is false (Filter(Func<TObject, bool>, bool)).
filter_dynamic
fn filter_dynamic(self: &Self, predicate_changed: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T) -> bool>>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The items that the latest predicate of predicate_changed accepts: each new predicate
evaluates every item again; until the first, no item is included
(Filter(IObservable<Func<TObject, bool>>, bool suppressEmptyChangeSets = true)).
filter_dynamic_with
fn filter_dynamic_with(self: &Self, predicate_changed: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T) -> bool>>>, suppress_empty_change_sets: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
filter_dynamic that keeps the empty change sets when
suppress_empty_change_sets is false
(Filter(IObservable<Func<TObject, bool>>, bool)).
filter_dynamic_reapply
fn filter_dynamic_reapply(self: &Self, predicate_changed: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T) -> bool>>>, reapply_filter: std::rc::Rc<dyn ferroui_system::IObservable<()>>) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
filter_dynamic that also evaluates every item again with the
latest predicate when reapply_filter produces a value
(Filter(IObservable<Func<TObject, bool>>, IObservable<Unit>, bool suppressEmptyChangeSets = true)).
filter_dynamic_reapply_with
fn filter_dynamic_reapply_with(self: &Self, predicate_changed: std::rc::Rc<dyn ferroui_system::IObservable<std::rc::Rc<dyn Fn(&T) -> bool>>>, reapply_filter: std::rc::Rc<dyn ferroui_system::IObservable<()>>, suppress_empty_change_sets: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
filter_dynamic_reapply that keeps the empty change sets
when suppress_empty_change_sets is false
(Filter(IObservable<Func<TObject, bool>>, IObservable<Unit>, bool)).
filter_with_state
fn filter_with_state<S: 'static>(self: &Self, predicate_state: std::rc::Rc<dyn ferroui_system::IObservable<S>>, predicate: impl Fn(&S, &T) -> bool + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The items that predicate accepts with the latest value of predicate_state: each new
value evaluates every item again; until the first, no item is included
(Filter<TObject, TKey, TState>(IObservable<TState>, Func<TState, TObject, bool>, bool suppressEmptyChangeSets = true)).
filter_with_state_with
fn filter_with_state_with<S: 'static>(self: &Self, predicate_state: std::rc::Rc<dyn ferroui_system::IObservable<S>>, predicate: impl Fn(&S, &T) -> bool + 'static, suppress_empty_change_sets: bool) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
filter_with_state that keeps the empty change sets when
suppress_empty_change_sets is false
(Filter<TObject, TKey, TState>(IObservable<TState>, Func<TState, TObject, bool>, bool)).
not_empty
fn not_empty(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>>
The change sets that have changes (NotEmpty).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.