Function bevy::ecs::system::assert_is_system

pub fn assert_is_system<In, Out, Marker>(
    system: impl IntoSystem<In, Out, Marker>,
where In: 'static, Out: 'static,
Expand description

Ensure that a given function is a system.

This should be used when writing doc examples, to confirm that systems used in an example are valid systems.


The following example will panic when run since the system’s parameters mutably access the same component multiple times.

fn my_system(query1: Query<&mut Transform>, query2: Query<&mut Transform>) {
    // ...