iced::advanced::widget::operation

Function then

Source
pub fn then<A, B, O>(
    operation: impl Operation<A> + 'static,
    f: fn(_: A) -> O,
) -> impl Operation<B>
where A: 'static, B: Send + 'static, O: Operation<B> + 'static,
Available on crate feature advanced only.
Expand description

Chains the output of an Operation with the provided function to build a new Operation.