Trait valence::ecs::system::IntoObserverSystem

pub trait IntoObserverSystem<E, B, M, Out = ()>: Send + 'static
where E: 'static, B: Bundle,
{ type System: ObserverSystem<E, B, Out>; // Required method fn into_system(this: Self) -> Self::System; }
Expand description

Implemented for systems that convert into ObserverSystem.

Required Associated Types§

type System: ObserverSystem<E, B, Out>

The type of System that this instance converts into.

Required Methods§

fn into_system(this: Self) -> Self::System

Turns this value into its corresponding System.

Object Safety§

This trait is not object safe.

Implementors§

§

impl<S, M, Out, E, B> IntoObserverSystem<E, B, M, Out> for S
where S: IntoSystem<Trigger<'static, E, B>, Out, M> + Send + 'static, E: 'static, B: Bundle, <S as IntoSystem<Trigger<'static, E, B>, Out, M>>::System: ObserverSystem<E, B, Out>,

§

type System = <S as IntoSystem<Trigger<'static, E, B>, Out, M>>::System