ExpressionChainParameters
struct · ferroui-reactiveui · v0.5.0
struct ExpressionChainParameters<T, V>
How one property path is to be observed (ExpressionChainParameters<TSender>).
Members
sourcepathbefore_changeskip_initialis_distinctsuppress_warningscomparerkeeps_repeat_after_attachmentnewwith_comparer
source
source: std::rc::Weak<T>
The root object of the path (Source).
path
path: ferroui_system::component_model::PropertyPath<std::rc::Rc<T>, V>
The path: its text is the expression of the changes, its steps the links (Expression,
Links).
before_change
before_change: bool
Whether the values are observed before they change (BeforeChange).
skip_initial
skip_initial: bool
Whether the first value is dropped (SkipInitial).
is_distinct
is_distinct: bool
Whether a value equal to the last one is dropped (IsDistinct).
suppress_warnings
suppress_warnings: bool
Whether the warning of a property that cannot notify is suppressed (SuppressWarnings).
comparer
comparer: Option<ValueComparer<V>>
How two values are compared; without it, no two values are equal.
keeps_repeat_after_attachment
keeps_repeat_after_attachment: bool
Whether a notification that repeats the value read after an attachment is kept. Upstream's
run-time chain drops it once; its generated WhenChanging of one property, which observes
PropertyChanging directly, keeps it.
new
fn new(source: &Rc<T>, path: PropertyPath<Rc<T>, V>, before_change: bool, skip_initial: bool, is_distinct: bool, suppress_warnings: bool) -> Self
The parameters of the observation of path on source, comparing the values with
PartialEq.
with_comparer
fn with_comparer(source: &Rc<T>, path: PropertyPath<Rc<T>, V>, before_change: bool, skip_initial: bool, is_distinct: bool, suppress_warnings: bool, comparer: Option<ValueComparer<V>>) -> Self
The parameters of the observation of path on source, comparing the values with
comparer (None: no two values are equal).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClone
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.