pub struct ProfilerState { /* private fields */ }
Implementations§
Source§impl ProfilerState
impl ProfilerState
pub fn new() -> ProfilerState
pub fn previous_frame(&mut self) -> &mut ProfilerFrame
pub fn current_frame(&mut self) -> &mut ProfilerFrame
pub fn next_frame(&mut self)
pub fn begin_track_time(&mut self, name: String)
pub fn end_track_time(&mut self, time: f64)
Auto Trait Implementations§
impl Freeze for ProfilerState
impl RefUnwindSafe for ProfilerState
impl Send for ProfilerState
impl Sync for ProfilerState
impl Unpin for ProfilerState
impl UnwindSafe for ProfilerState
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