pub struct Context<U>where
U: Ui,{
pub current_file: &'static CurrentFile<U>,
pub current_widget: &'static CurrentWidget<U>,
pub commands: &'static Commands<U>,
/* private fields */
}Fields§
§current_file: &'static CurrentFile<U>§current_widget: &'static CurrentWidget<U>§commands: &'static Commands<U>Implementations§
source§impl<U> Context<U>where
U: Ui,
impl<U> Context<U>where
U: Ui,
pub const fn new( current_file: &'static CurrentFile<U>, current_widget: &'static CurrentWidget<U>, commands: &'static Commands<U>, handles: &'static AtomicUsize, has_ended: &'static AtomicBool, ) -> Self
pub fn spawn<R: Send + 'static>( &self, f: impl FnOnce() -> R + Send + 'static, ) -> JoinHandle<R>
pub fn has_ended(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<U> Freeze for Context<U>
impl<U> !RefUnwindSafe for Context<U>
impl<U> Send for Context<U>
impl<U> Sync for Context<U>
impl<U> Unpin for Context<U>
impl<U> !UnwindSafe for Context<U>
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)