usecrate::resource::Resource;usesuper::World;pubtraitSetupHandler<T>: Sized {fnsetup(world:&mut World);}pubstructDefaultSetupHandler;impl<T>SetupHandler<T>forDefaultSetupHandlerwhere
T: Default + Resource,
{fnsetup(world:&mut World){
world.entry().or_insert_with(T::default);}}/// A setup handler that simply does nothing and thus will cause a panic on
/// fetching.
////// A typedef called `ReadExpect` exists, so you usually don't use this type
/// directly.
pubstructPanicHandler;impl<T>SetupHandler<T>forPanicHandlerwhere
T: Resource,
{fnsetup(_: &mut World){}}