bevy::reflect

Function tuple_try_apply

source
pub fn tuple_try_apply<T>(
    a: &mut T,
    b: &(dyn PartialReflect + 'static),
) -> Result<(), ApplyError>
where T: Tuple,
Expand description

Tries to apply the elements of b to the corresponding elements of a and returns a Result.

ยงErrors

This function returns an ApplyError::MismatchedKinds if b is not a tuple or if applying elements to each other fails.