pub struct FrameResult {
pub physics_ticks: u32,
pub should_render: bool,
}Expand description
Result of a game loop update
Fields§
§physics_ticks: u32Number of physics ticks that should run this frame
should_render: boolWhether rendering should occur
Implementations§
Trait Implementations§
Source§impl Clone for FrameResult
impl Clone for FrameResult
Source§fn clone(&self) -> FrameResult
fn clone(&self) -> FrameResult
Returns a duplicate 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 moreSource§impl Debug for FrameResult
impl Debug for FrameResult
Source§impl PartialEq for FrameResult
impl PartialEq for FrameResult
impl Eq for FrameResult
impl StructuralPartialEq for FrameResult
Auto Trait Implementations§
impl Freeze for FrameResult
impl RefUnwindSafe for FrameResult
impl Send for FrameResult
impl Sync for FrameResult
impl Unpin for FrameResult
impl UnwindSafe for FrameResult
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