pub fn array_try_apply<A: Array>(
array: &mut A,
reflect: &dyn PartialReflect,
) -> 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.