bevy_ecs::system

Trait IntoObserverSystem

Source
pub trait IntoObserverSystem<E: 'static, B: Bundle, M, Out = ()>: Send + 'static {
    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§

Source

type System: ObserverSystem<E, B, Out>

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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

Source§

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