Function bevy::ecs::system::assert_is_exclusive_system
[−]pub fn assert_is_exclusive_system<Params, SystemType>(
_sys: impl IntoExclusiveSystem<Params, SystemType>
)
Expand description
Ensure that a given function is an exclusive system
This should be used when writing doc examples, to confirm that systems used in an example are valid exclusive systems
Passing assert
fn an_exclusive_system(_world: &mut World) {}
assert_is_exclusive_system(an_exclusive_system);
Failing assert
ⓘ
fn not_an_exclusive_system(_world: &mut World, number: f32) {}
assert_is_exclusive_system(not_an_exclusive_system);