We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This function would be triggered the first time a system is added to the scheduler.
It'll be a second method on the System trait alongside a second type SetupData. The trait would become:
System
SetupData
trait System<'a> { type Data: SystemData<'a>; type SetupData: SystemData<'a>; fn run(storage: <Self::Data as SystemData<'a>>::View); fn setup(_: <Self::SetupData as SystemData<'a>>::View) {} }
Default associated types are not stable yet so everyone will have to define SetupData, fortunately there'll be a macro:
#[system_with_setup] impl InAcid { fn run(/*borrows*/) { ... } fn setup(/*setup borrows*/) { ... } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This function would be triggered the first time a system is added to the scheduler.
It'll be a second method on the
System
trait alongside a second typeSetupData
.The trait would become:
Default associated types are not stable yet so everyone will have to define
SetupData
, fortunately there'll be a macro:The text was updated successfully, but these errors were encountered: