pub struct PhaseTimes {
pub build: Duration,
pub layout: Duration,
pub place: Duration,
pub paint: Duration,
}Expand description
Time spent in each phase of the UI runtime, once a clock was given to it.
Fields§
§build: DurationRunning the views.
layout: DurationSolving sizes and positions.
place: DurationGiving every element its place on the screen.
paint: DurationTurning elements into the scene.
Implementations§
Trait Implementations§
Source§impl Clone for PhaseTimes
impl Clone for PhaseTimes
Source§fn clone(&self) -> PhaseTimes
fn clone(&self) -> PhaseTimes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PhaseTimes
Source§impl Debug for PhaseTimes
impl Debug for PhaseTimes
Source§impl Default for PhaseTimes
impl Default for PhaseTimes
Source§fn default() -> PhaseTimes
fn default() -> PhaseTimes
Returns the “default value” for a type. Read more
Source§impl PartialEq for PhaseTimes
impl PartialEq for PhaseTimes
impl StructuralPartialEq for PhaseTimes
Auto Trait Implementations§
impl Freeze for PhaseTimes
impl RefUnwindSafe for PhaseTimes
impl Send for PhaseTimes
impl Sync for PhaseTimes
impl Unpin for PhaseTimes
impl UnsafeUnpin for PhaseTimes
impl UnwindSafe for PhaseTimes
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