pub type ConstructFn = fn(&(dyn Any + 'static)) -> Result<Box<dyn ErasedComponent>, ConstructError>;Expand description
Per-type constructor. Downcasts &dyn Any → &Config and calls
T::new. Install looks it up by TYPE_NAME.
pub type ConstructFn = fn(&(dyn Any + 'static)) -> Result<Box<dyn ErasedComponent>, ConstructError>;Per-type constructor. Downcasts &dyn Any → &Config and calls
T::new. Install looks it up by TYPE_NAME.