pub fn replace_of<T: 'static>(
target: &mut dyn Any,
filled: &mut dyn Any,
) -> Result<(), ModelError>Expand description
Swap the T in filled, an Option of it, with target: filled
then holds what target held, dropped with it.
ยงErrors
When either is of another type, or filled is empty.