pub struct FramePhaseSample {
pub phase: FramePhase,
pub duration_ms: f64,
}Fields§
§phase: FramePhase§duration_ms: f64Implementations§
Source§impl FramePhaseSample
impl FramePhaseSample
pub const fn new(phase: FramePhase, duration_ms: f64) -> Self
pub fn from_duration(phase: FramePhase, duration: Duration) -> Self
Trait Implementations§
Source§impl Clone for FramePhaseSample
impl Clone for FramePhaseSample
impl Copy for FramePhaseSample
Source§impl Debug for FramePhaseSample
impl Debug for FramePhaseSample
Source§impl PartialEq for FramePhaseSample
impl PartialEq for FramePhaseSample
impl StructuralPartialEq for FramePhaseSample
Auto Trait Implementations§
impl Freeze for FramePhaseSample
impl RefUnwindSafe for FramePhaseSample
impl Send for FramePhaseSample
impl Sync for FramePhaseSample
impl Unpin for FramePhaseSample
impl UnsafeUnpin for FramePhaseSample
impl UnwindSafe for FramePhaseSample
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