Function autowired::register_with [−][src]
pub fn register_with<T: Component>(
constructor: impl FnOnce() -> Option<Arc<T>>
) -> bool
Expand description
add component into a global map
return false if component has already existed or constructor
return None