bevy_reflect

Function tuple_try_apply

Source
pub fn tuple_try_apply<T: Tuple>(
    a: &mut T,
    b: &dyn Reflect,
) -> Result<(), ApplyError>
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.