Trait bevy_ecs::system::IntoSystem
source · pub trait IntoSystem<In, Out, Marker>: Sized {
type System: System<In = In, Out = Out>;
// Required method
fn into_system(this: Self) -> Self::System;
// Provided method
fn pipe<B, Final, MarkerB>(
self,
system: B
) -> PipeSystem<Self::System, B::System>
where B: IntoSystem<Out, Final, MarkerB> { ... }
}
Expand description
Required Associated Types§
Required Methods§
sourcefn into_system(this: Self) -> Self::System
fn into_system(this: Self) -> Self::System
Turns this value into its corresponding System
.
Provided Methods§
sourcefn pipe<B, Final, MarkerB>(
self,
system: B
) -> PipeSystem<Self::System, B::System>where
B: IntoSystem<Out, Final, MarkerB>,
fn pipe<B, Final, MarkerB>( self, system: B ) -> PipeSystem<Self::System, B::System>where B: IntoSystem<Out, Final, MarkerB>,
Pass the output of this system A
into a second system B
, creating a new compound system.
The second system must have In<T>
as its first parameter, where T
is the return type of the first system.