Function bevy::reflect::tuple_try_apply
source · pub fn tuple_try_apply<T>(
a: &mut T,
b: &(dyn Reflect + '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.