Expand description
The kernel of DynamicData (DynamicData/Kernel): the extensions of Option<T> (upstream’s
Optional<T>) and of its sequences, the status of a connection, the error of an item, the
pairs of an item with its index or a value, and the helpers of sequences and schedulers.
Upstream’s Optional<T> is Rust’s Option<T> (docs/porting/reactive.md, section 5.4), so
Optional.cs itself has no counterpart; ReferenceEqualityComparer is Rc::ptr_eq,
ReadOnlyCollectionLight is Vec<T>, EnumerableIList/EnumeratorIList/IEnumerableIList
are the slices and Vecs of Rust, ISupportsCapacity is Vec::with_capacity, and
ParallelEx (PLINQ) is not ported.
Structs§
- Error
- An item that an operator could not handle, with its key and the error it raised
(
Error<TObject, TKey>): what the error handler ofTransformSafereceives. - Item
With Index - An item and its index (
ItemWithIndex<T>): equal and hashed by the item alone, as upstream’s. - Item
With Value - An item and a value that goes with it (
ItemWithValue<TObject, TValue>): equal when both parts are. - Option
Else - What
if_has_valuereturns: runs the action ofelse_when the option was empty (OptionElse).
Enums§
- Connection
Status - The state of the connection to a sequence (
ConnectionStatus), asMonitorStatusreports it.
Traits§
- Option
Extensions - The extensions of an option (
OptionExtensionsonOptional<T>). - Option
Observable Extensions - The operators of sequences of options (
OptionObservableExtensions), implemented forRc<dyn IObservable<Option<T>>>.
Functions§
- duplicates
- The items whose value by
value_selectoris that of another item, group by group in the order of the first item of each group (Duplicates). - first_
or_ optional - The first item that
selectoraccepts, or none (FirstOrOptional). - index_
of_ many - The items of
items_to_findthat are insource, with their indexes there, in the order ofitems_to_find(IndexOfMany(IEnumerable<T>, IEnumerable<T>)). - index_
of_ many_ with index_of_manywith the result thatresult_selectormakes of each item and its index (IndexOfMany(.., Func<TObject, int, TResult>)).- lookup
- The value of
keyinsource, or none (Lookup(IDictionary, TKey)). - remove_
if_ contained - Removes
keyfromsource; whether it was there (RemoveIfContained). - retry_
with_ back_ off - The sequence, subscribed again after each error of type
Eonce the delay thatback_off_strategygives for the error and the number of failures so far has passed; aNonedelay ends the sequence with the error (RetryWithBackOff<TSource, TException>). - schedule_
recurring_ action - Runs
actioneveryintervalonscheduleruntil the result is disposed (ScheduleRecurringAction(IScheduler, TimeSpan, Action)). - schedule_
recurring_ action_ with - Runs
actionafter each interval thatintervalgives, onscheduler, until the result is disposed (ScheduleRecurringAction(IScheduler, Func<TimeSpan>, Action)). - select_
values - The values of the options that have one (
SelectValues(IEnumerable<Optional<T>>)). - to_unit
- The sequence with each value replaced by
()(ToUnit). - with_
index - The items with their indexes (
WithIndex).