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