Function bevy_reflect::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.