logo
pub struct PropertyTracker<ChangeHandler = ()> { /* private fields */ }
Expand description

This structure allow to run a closure that queries properties, and can report if any property we accessed have become dirty

Implementations

Any of the properties accessed during the last evaluation of the closure called from the last call to evaluate is potentially dirty.

Evaluate the function, and record dependencies of properties accessed within this function. If this is called during the evaluation of another property binding or property tracker, then any changes to accessed properties will also mark the other binding/tracker dirty.

Evaluate the function, and record dependencies of properties accessed within this function. If this is called during the evaluation of another property binding or property tracker, then any changes to accessed properties will not propagate to the other tracker.

Call Self::evaluate if and only if it is dirty. But register a dependency in any case.

Mark this PropertyTracker as dirty

Sets the specified callback handler function, which will be called if any properties that this tracker depends on change their value.

Trait Implementations

Returns the “default value” for a type. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.