pub struct World { /* private fields */ }Implementations§
Source§impl World
impl World
pub fn new() -> Self
pub fn run_init(&mut self) -> AppResult
pub fn run_step(&self) -> AppResult
pub fn run_exit(&self)
pub fn add_plugin<T: Plugin>(&mut self)
pub fn insert<T: 'static>(&mut self, value: T)
pub fn try_get<'a, T: 'static>(&'a self) -> Option<Ref<'a, T>>
pub fn get<'a, T: 'static>(&'a self) -> Ref<'a, T>
pub fn try_get_mut<'a, T: 'static>(&'a self) -> Option<RefMut<'a, T>>
pub fn get_mut<'a, T: 'static>(&'a self) -> RefMut<'a, T>
Auto Trait Implementations§
impl Freeze for World
impl !RefUnwindSafe for World
impl !Send for World
impl !Sync for World
impl Unpin for World
impl UnsafeUnpin for World
impl !UnwindSafe for World
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