pub struct App { /* private fields */ }Implementations§
Source§impl App
impl App
pub fn new() -> Self
pub fn add_plugin(&mut self, plugin: impl Plugin) -> &mut Self
pub fn add_resource(&mut self, res: impl Component) -> &mut Self
pub fn get_resource<'a, T: Component>(&'a self) -> Ref<'a, T>
pub fn get_resource_mut<'a, T: Component>(&'a self) -> RefMut<'a, T>
pub fn try_insert_resource<T: Component>(&mut self, res: T) -> bool
pub fn add_system<Marker>( &mut self, stage: SystemStage, system: impl IntoSystem<Marker> + 'static, ) -> &mut Self
pub fn build(&mut self) -> &mut Self
pub fn update(&mut self)
pub fn set_runner<F>(&mut self, runner: F) -> &mut Self
pub fn run(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for App
impl !RefUnwindSafe for App
impl !Send for App
impl !Sync for App
impl !UnwindSafe for App
impl Unpin for App
impl UnsafeUnpin for App
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more