pub fn resource_equals<T>(value: T) -> impl FnMut(Res<'_, T>)where T: Resource + PartialEq<T>,
Generates a Condition-satisfying closure that returns true if the resource is equal to value.
Condition
true
value
The condition will panic if the resource does not exist.