Struct pax_runtime_api::RuntimeContext
source · pub struct RuntimeContext {
pub frames_elapsed: usize,
pub bounds_parent: (f64, f64),
}
Fields§
§frames_elapsed: usize
The current global engine tick count
bounds_parent: (f64, f64)
The bounds of this element’s immediate container (parent) in px
Trait Implementations§
source§impl Clone for RuntimeContext
impl Clone for RuntimeContext
source§fn clone(&self) -> RuntimeContext
fn clone(&self) -> RuntimeContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for RuntimeContext
impl Send for RuntimeContext
impl Sync for RuntimeContext
impl Unpin for RuntimeContext
impl UnwindSafe for RuntimeContext
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