FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ExpressionChainParameters

    struct · ferroui-reactiveui · v0.5.0

    struct ExpressionChainParameters<T, V>
    

    How one property path is to be observed (ExpressionChainParameters<TSender>).

    View source

    Members

    source

    source: std::rc::Weak<T>
    

    The root object of the path (Source).

    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).

    Source

    before_change

    before_change: bool
    

    Whether the values are observed before they change (BeforeChange).

    Source

    skip_initial

    skip_initial: bool
    

    Whether the first value is dropped (SkipInitial).

    Source

    is_distinct

    is_distinct: bool
    

    Whether a value equal to the last one is dropped (IsDistinct).

    Source

    suppress_warnings

    suppress_warnings: bool
    

    Whether the warning of a property that cannot notify is suppressed (SuppressWarnings).

    Source

    comparer

    comparer: Option<ValueComparer<V>>
    

    How two values are compared; without it, no two values are equal.

    Source

    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.

    Source

    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.

    Source

    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).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • Clone

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.