Trait bevy_ecs::system::IntoObserverSystem

source ·
pub trait IntoObserverSystem<E: 'static, B: Bundle, M>: Send + 'static {
    type System: ObserverSystem<E, B>;

    // Required method
    fn into_system(this: Self) -> Self::System;
}
Expand description

Implemented for systems that convert into ObserverSystem.

Required Associated Types§

source

type System: ObserverSystem<E, B>

The type of System that this instance converts into.

Required Methods§

source

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

Turns this value into its corresponding System.

Object Safety§

This trait is not object safe.

Implementors§

source§

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

§

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