pub trait ComponentExt: Component + Sized {
// Provided methods
fn map<'a, M>(
self,
done: impl FnMut(Self::Output) -> Flow<M> + 'a,
) -> Map<'a, Self, M>
where Self: 'a { ... }
fn with_overlays<'a>(self) -> Overlays<'a, Self::Output>
where Self: 'a,
Self::Output: 'a { ... }
fn boxed<'a>(self) -> Child<'a, Self::Output>
where Self: 'a { ... }
}Expand description
Adapters for putting any component in a container.
Provided Methods§
Sourcefn map<'a, M>(
self,
done: impl FnMut(Self::Output) -> Flow<M> + 'a,
) -> Map<'a, Self, M>where
Self: 'a,
fn map<'a, M>(
self,
done: impl FnMut(Self::Output) -> Flow<M> + 'a,
) -> Map<'a, Self, M>where
Self: 'a,
Turn this component’s answer into M’s flow: Flow::Done(m) to
finish the whole composition with m, Flow::Continue to carry on
(the component stays, showing its answer, and focus moves past it).
Cancelling cancels the composition unless
on_cancel says otherwise.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".