FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ReversibleActionExecution

    struct · ferroui-xaml-interactions · v0.5.0

    struct ReversibleActionExecution
    

    Executes the actions of a collection, the reversible ones reversibly (an internal class of the reference).

    View source

    Members

    execute

    fn execute(sender: Option<&BoxedValue>, actions: Option<&ActionCollection>, parameter: Option<&BoxedValue>) -> Vec<Ref<FerroObject>>
    

    Executes the actions of actions: a reversible action with IReversibleAction::execute_reversibly, any other action with IAction::execute. Returns the reversible actions that applied (whose result is not false), in the order of the actions.

    Panics

    Re-raises the panic of an action, after reverting the reversible actions that applied before it, last first (a panic while reverting is dropped, so that the panic of the action is the one raised).

    Deviation (DEVIATIONS.md, Behaviors): the applied actions are returned as the objects of the actions (a contract of an object is found through the object).

    Source

    revert

    fn revert(applied_actions: &[Ref<FerroObject>], sender: Option<&BoxedValue>, parameter: Option<&BoxedValue>)
    

    Reverts applied_actions, last first (the loop of the triggers that revert the actions they applied).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither

    Availability

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