Function bevy_reflect::array_try_apply
source · pub fn array_try_apply<A: Array>(
array: &mut A,
reflect: &dyn Reflect
) -> Result<(), ApplyError>
Expand description
Tries to apply the reflected array data to the given array and returns a Result.
§Errors
- Returns an
ApplyError::DifferentSize
if the two arrays have differing lengths. - Returns an
ApplyError::MismatchedKinds
if the reflected value is not a valid array. - Returns any error that is generated while applying elements to each other.